forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb527ebc
committed
pgcrypto: Fix check for buffer size
The code copying the PGP block into the temp buffer failed toaccount for the extra 2 bytes in the buffer which are neededfor the prefix. If the block was oversized, subsequent checksof the prefix would have exceeded the buffer size. Since theblock sizes are hardcoded in the list of supported ciphers itcan be verified that there is no live bug here. Backpatch allthe way for consistency though, as this bug is old.Author: Mikhail Gribkov <youzhick@gmail.com>Discussion:https://postgr.es/m/CAMEv5_uWvcMCMdRFDsJLz2Q8g16HEa9xWyfrkr+FYMMFJhawOw@mail.gmail.comBackpatch-through: v121 parent4c48c0f commitb527ebc
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
253 |
| - | |
| 253 | + | |
| 254 | + | |
254 | 255 |
| |
255 | 256 |
| |
256 | 257 |
| |
|
0 commit comments
Comments
(0)