This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug bpf/24946] printing hex sequences causes crash
- From: "sapatel at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 30 Aug 2019 20:20:10 +0000
- Subject: [Bug bpf/24946] printing hex sequences causes crash
- Auto-submitted: auto-generated
- References: <bug-24946-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24946
--- Comment #1 from Sagar Patel <sapatel at redhat dot com> ---
The translation in stapbpf causes the iterator to reach the end of the string
after building the hex number, and then loop increments the iterator again and
misses the stopping condition. This causes the loop to go out of range and
eventually run into a segmentation fault.
Additionally, the building of the hex number doesn't account for digits '8' and
'9', and as mentioned in PR24947 there is no check for valid hex sequences.
--
You are receiving this mail because:
You are the assignee for the bug.