Skip to content

Commit 8d8c383

Browse files
author
Tomoaki Nishiyama
committed
enlarge buffersize to prevent potential overflow
1 parent cfcdcff commit 8d8c383

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RPostgreSQL/src/libpq/crypt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ static C_block PC1ROT[64 / CHUNKBITS][1 << CHUNKBITS];
465465
static C_block PC2ROT[2][64 / CHUNKBITS][1 << CHUNKBITS];
466466

467467
/* Initial permutation/expansion table */
468-
static C_block IE3264[32 / CHUNKBITS][1 << CHUNKBITS];
468+
static C_block IE3264[64 / CHUNKBITS][1 << CHUNKBITS];
469+
/* This is passed to init_perm(C_block[64 / CHUNKBITS][1 << CHUNKBITS], unsigned char[64], int, int); */
469470

470471
/* Table that combines the S, P, and E operations. */
471472
static int32_t SPE[2][8][64];

0 commit comments

Comments
 (0)