Skip to content

Commit 665c6ae

Browse files
committed
Fixed event length miscalculation causing infinite loop
1 parent 7040b1e commit 665c6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/sys/fanotify.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ impl Fanotify {
588588
metadata.assume_init()
589589
};
590590

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

0 commit comments

Comments
 (0)