Skip to main content

Module validate

Module validate 

Source
Expand description

ELF validation logic

Authors: MarioS271

Re-exportsยง

use super::defs::error::ElfError; ๐Ÿ”’
use super::defs::header::ElfHeader; ๐Ÿ”’
use super::defs::phdrs::parse_phdrs; ๐Ÿ”’
use super::defs::phdrs::ElfPhdr; ๐Ÿ”’
use crate::kdebug; ๐Ÿ”’
use crate::kerror; ๐Ÿ”’

Functionsยง

validate_elf
Validate a given ELF binary slice Returns a tuple of a slice of ElfPhdrs and a [u64] with the value of e_entry
validate_header ๐Ÿ”’
Validate if a byte slice contains a valid ELF header