forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc4d6bda
committed
There is a bug in aclinsert3 in the code which update the acl arrays.
When an acl item is added or updated the new entry is deleted if it has nopermissions and the acl array is shrinked. This is is done by decrementingthe number of items without updating the corresponding array size.The array with the incorrect size is later read by pg_aclcheck and the entrycount is used to allocate a new array while the array size is used to copythe old one. This causes a memory corruption and a backend crash.This happens only to normal user as the administrator bypasses acl checks.Massimo Dal Zotto1 parent8299e75 commitc4d6bda
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
417 | 417 |
| |
418 | 418 |
| |
419 | 419 |
| |
| 420 | + | |
| 421 | + | |
420 | 422 |
| |
421 | 423 |
| |
422 | 424 |
| |
|
0 commit comments
Comments
(0)