Skip to content

Commit

Permalink
feat: only consider valid ascii bytes for pe dll names
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Jun 6, 2024
1 parent 0023500 commit c219245
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boreal/src/module/pe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,7 @@ fn add_delay_load_imports<Pe: ImageNtHeaders>(
fn dll_name_is_valid(dll_name: &[u8]) -> bool {
dll_name.iter().all(|c| {
*c >= b' '
&& *c <= 0x7e
&& *c != b'\"'
&& *c != b'*'
&& *c != b'<'
Expand Down

0 comments on commit c219245

Please sign in to comment.