OpenLDAP 2.2.20 Engineering
Fixed slapd sanity check on protocol in authz-regexp URI (ITS#3411)
Fixed slapd ID to DN mapping when values need DN escaping (ITS#3419)
+ Fixed slapd sl_realloc memory overrun (ITS#3420, #3404, #3296)
Fixed back-bdb locks in backend_group (ITS#3263, #3365)
Fixed back-sql segfault when logging and delete_rule is NULL (ITS#3407)
Build Environment
new = p;
/* If reallocing the last block, we can grow it */
- } else if ( (char *)ptr + p[-1] == sh->h_last ) {
+ } else if ( (char *)ptr + p[-1] == sh->h_last &&
+ (char *)ptr + size < (char *)sh->h_end ) {
new = p;
sh->h_last = (char *) sh->h_last + size - p[-1];
p[-1] = size;