pgsql: pgcrypto: Fix check for buffer size

2024-01-30 Thread Daniel Gustafsson
pgcrypto: Fix check for buffer size The code copying the PGP block into the temp buffer failed to account for the extra 2 bytes in the buffer which are needed for the prefix. If the block was oversized, subsequent checks of the prefix would have exceeded the buffer size. Since the block sizes are

pgsql: pgcrypto: Fix check for buffer size

2024-01-30 Thread Daniel Gustafsson
pgcrypto: Fix check for buffer size The code copying the PGP block into the temp buffer failed to account for the extra 2 bytes in the buffer which are needed for the prefix. If the block was oversized, subsequent checks of the prefix would have exceeded the buffer size. Since the block sizes are

pgsql: pgcrypto: Fix check for buffer size

2024-01-30 Thread Daniel Gustafsson
pgcrypto: Fix check for buffer size The code copying the PGP block into the temp buffer failed to account for the extra 2 bytes in the buffer which are needed for the prefix. If the block was oversized, subsequent checks of the prefix would have exceeded the buffer size. Since the block sizes are

pgsql: pgcrypto: Fix check for buffer size

2024-01-30 Thread Daniel Gustafsson
pgcrypto: Fix check for buffer size The code copying the PGP block into the temp buffer failed to account for the extra 2 bytes in the buffer which are needed for the prefix. If the block was oversized, subsequent checks of the prefix would have exceeded the buffer size. Since the block sizes are

pgsql: pgcrypto: Fix check for buffer size

2024-01-30 Thread Daniel Gustafsson
pgcrypto: Fix check for buffer size The code copying the PGP block into the temp buffer failed to account for the extra 2 bytes in the buffer which are needed for the prefix. If the block was oversized, subsequent checks of the prefix would have exceeded the buffer size. Since the block sizes are

pgsql: pgcrypto: Fix check for buffer size

2024-01-30 Thread Daniel Gustafsson
pgcrypto: Fix check for buffer size The code copying the PGP block into the temp buffer failed to account for the extra 2 bytes in the buffer which are needed for the prefix. If the block was oversized, subsequent checks of the prefix would have exceeded the buffer size. Since the block sizes are