This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Set NODELETE flag after checking for NULL pointer


On 03/11/2016 07:30 PM, Aurelien Jarno wrote:
> 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 (which in practice also requires
> RTLD_LAZY), 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.

How hard is it to create a test case for this?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]