mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
![]() Section names are referred to by offset and length. We do not check (and probably should not check) whether these names overlap in any way. This opened the door to many sections (in this example: about 2700) forcing ELF::Image::m_sections to contain endless copies of the same huge string (in this case: 882K). Fix this by loading only the first PAGE_SIZE bytes of each name. Since section names are only relevant for relocations and debug information and most section names are hard-coded (and far below 4096 bytes) anyway, this should be no restriction at all for 'normal' executables. Found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29187 |
||
---|---|---|
.. | ||
Arch/i386 | ||
AuxiliaryVector.h | ||
CMakeLists.txt | ||
CoreDump.h | ||
DynamicLinker.cpp | ||
DynamicLinker.h | ||
DynamicLoader.cpp | ||
DynamicLoader.h | ||
DynamicObject.cpp | ||
DynamicObject.h | ||
exec_elf.h | ||
Image.cpp | ||
Image.h | ||
Validation.cpp | ||
Validation.h |