This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bpf/24946] printing hex sequences causes crash


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]