Re: [PATCH] readelf: Don't leak lengths array when detecting an invalid hash chain.

2018-06-08 Thread Mark Wielaard
On Tue, 2018-06-05 at 21:55 +0200, Mark Wielaard wrote: > In both handle_sysv_hash and handle_sysv_hash64 we check the has chain > isn't too long. If it is we would report an error and leak the lengths > array. Just clean up the array even in the error case. Pushed to master.

[PATCH] readelf: Don't leak lengths array when detecting an invalid hash chain.

2018-06-05 Thread Mark Wielaard
In both handle_sysv_hash and handle_sysv_hash64 we check the has chain isn't too long. If it is we would report an error and leak the lengths array. Just clean up the array even in the error case. Signed-off-by: Mark Wielaard --- src/ChangeLog | 6 ++ src/readelf.c | 14 -- 2 fi