Hi, On Thu, Sep 07, 2023 at 04:25:00PM +0200, Mark Wielaard wrote: > Subject: [PATCH] libelf: tdelete dummy key if anything goes wrong setting up > rawchunk > > elf_getdata_rawchunk uses a binary search tree cache. If a rawchunk is > not yet in the cache we setup a new entry. But if anything went wrong > setting up the new rawchunk we would leave a NULL key in the > cache. This could blow up the next search. Fix this by removing the > (dummy) key from the cache on any failure. > > * libelf/elf_getdata_rawchunk.c (elf_getdata_rawchunk): Don't > assign NULL to *found. Call tdelete if anything goes wrong.
Pushed, Mark