Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: correctly handle spaces in /proc/pid/maps pathnames #553

Merged
merged 8 commits into from
Aug 18, 2023
14 changes: 14 additions & 0 deletions src/symbolize/gimli/parse_running_mmaps_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,18 @@ fn check_maps_entry_parsing_32bit() {
pathname: "/executable/path/with some spaces".into(),
}
);
assert_eq!(
"b7c79000-b7e02000 r--p 00000000 08:01 60662705 \
/executable/path/with multiple-continues spaces "
MasonRemaley marked this conversation as resolved.
Show resolved Hide resolved
.parse::<MapsEntry>()
.unwrap(),
MapsEntry {
address: (0xb7c79000, 0xb7e02000),
perms: ['r', '-', '-', 'p'],
offset: 0x00000000,
dev: (0x08, 0x01),
inode: 0x60662705,
pathname: "/executable/path/with multiple-continues spaces".into(),
MasonRemaley marked this conversation as resolved.
Show resolved Hide resolved
}
);
}