better checking of DT_STRSZ for ELF

https://github.com/upx/upx/issues/779
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66064
	modified:   p_lx_elf.cpp
	modified:   p_lx_elf.h
This commit is contained in:
John Reiser
2024-01-27 11:11:07 -08:00
parent ff5a4eeb96
commit 69c51eee4d
2 changed files with 27 additions and 15 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ protected:
MemBuffer mb_shdr; // Shdr might not be near Phdr
MemBuffer mb_dt_offsets; // file offset of various DT_ tables
unsigned *dt_offsets; // index by dt_table[]
unsigned symnum_end;
unsigned strtab_end;
unsigned symnum_max;
unsigned strtab_max;
char const *dynstr; // from DT_STRTAB
unsigned sz_phdrs; // sizeof Phdr[]