• Bruce Momjian's avatar
    There is a bug in aclinsert3 in the code which update the acl arrays. · c4d6bda2
    Bruce Momjian authored
    When an acl item is added or updated the new entry is deleted if it has no
    permissions and the acl array is shrinked. This is is done by decrementing
    the number of items without updating the corresponding array size.
    The array with the incorrect size is later read by pg_aclcheck and the entry
    count is used to allocate a new array while the array size is used to copy
    the 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 Zotto
    c4d6bda2
acl.c 15.1 KB