We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e4567 commit 6d44a7fCopy full SHA for 6d44a7f
kernel/src/fileManager.c
@@ -182,7 +182,7 @@ uint8_t file_execute(char* filepath){
182
uint32_t elf_offset = *( (uint32_t*)( buffer + 0x38 ) );
183
uint32_t elf_filesize = *( (uint32_t*)( buffer + 0x44 ) );
184
uint32_t elf_memsz = *( (uint32_t*)( buffer + 0x48 ) );
185
- if( (elf_vaddr>0x5FF000) || (elf_vaddr<0x400000) || (elf_offset>0x130) || (elf_filesize>0xF0000) ) return 0;
+ if( (elf_vaddr>0x5FF000) || (elf_vaddr<0x400000) || (elf_filesize>0xF0000) ) return 0;
186
if( (elf_offset + elf_filesize) > file_inst.size ) return 0;
187
188
page_directory_t* pd = paging_createPageDirectory();
0 commit comments