aboutsummaryrefslogtreecommitdiff
path: root/crypt/crypt-private.h
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2016-09-03 20:25:59 +0200
committerAurelien Jarno <aurelien@aurel32.net>2016-09-03 20:25:59 +0200
commitead3cea7d8948113fe205243acbddbda609de5c9 (patch)
treedf2c4e8064d2d96ebad64d014dd067845e89f2a7 /crypt/crypt-private.h
parent6b75ba1388bff6a81bad410d7318d385a043b3cb (diff)
downloadglibc-ead3cea7d8948113fe205243acbddbda609de5c9.tar
glibc-ead3cea7d8948113fe205243acbddbda609de5c9.tar.gz
glibc-ead3cea7d8948113fe205243acbddbda609de5c9.tar.bz2
glibc-ead3cea7d8948113fe205243acbddbda609de5c9.zip
Set NODELETE flag after checking for NULL pointer
The commit b632bdd3 moved the setting of the DF_1_NODELETE flag earlier in the dl_open_worker function. However when calling dlopen with both RTLD_NODELETE and RTLD_NOLOAD, the pointer returned by _dl_map_object is NULL. This condition is checked just after setting the flag, while it should be done before. Fix that. Changelog: [BZ #19810] * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later. * elf/tst-noload.c: New test case. * elf/Makefile (tests): Add tst-noload.
Diffstat (limited to 'crypt/crypt-private.h')
0 files changed, 0 insertions, 0 deletions