Skip to content

Commit

Permalink
Fixed event length miscalculation causing infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
carlvoller committed Dec 3, 2024
1 parent 7040b1e commit 665c6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/fanotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ impl Fanotify {
metadata.assume_init()
};

let mut remaining_len = metadata.event_len;
let mut remaining_len = metadata.event_len - metadata_size as u32;
let mut info_records = Vec::new();
let mut current_event_offset = offset + metadata_size;

Expand Down

0 comments on commit 665c6ae

Please sign in to comment.