Skip to main content

find_alignment_padding

Function find_alignment_padding 

Source
pub fn find_alignment_padding(
    start: usize,
    size: usize,
) -> Result<Vec<CodeCave>, CodeCaveError>
Expand description

Finds alignment padding (zero bytes) in a memory range

§Arguments

  • start - The start address of the range
  • size - The size of the range

§Returns

  • Result<Vec<CodeCave>, CodeCaveError> - A list of found caves or an error