mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
78a63930cc
Before this, you could make the kernel copy memory from anywhere by setting up an ELF executable with a program header specifying file offsets outside the file. Since ELFImage didn't even know how large it was, we had no clue that we were copying things from outside the ELF. Fix this by adding a size field to ELFImage and validating program header ranges before memcpy()'ing to them. The ELF code is definitely going to need more validation and checking. |
||
---|---|---|
.. | ||
Arch/i386 | ||
ELFDynamicLoader.cpp | ||
ELFDynamicLoader.h | ||
ELFDynamicObject.cpp | ||
ELFDynamicObject.h | ||
ELFImage.cpp | ||
ELFImage.h | ||
ELFLoader.cpp | ||
ELFLoader.h | ||
exec_elf.h | ||
Makefile |