Bug 24947 - valid hex and octal sequences not checked for
Summary: valid hex and octal sequences not checked for
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: bpf (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-28 21:36 UTC by Sagar Patel
Modified: 2019-09-03 20:09 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sagar Patel 2019-08-28 21:36:54 UTC
With stapbpf there is no check to see if hex and octal sequences are in a valid range. For example, if we ran the following script in the LKM backend:

stap -e 'probe oneshot { printf("\x100") }', we would get the following output:

"error: hex escape sequence out of range". 

However, in stapbpf, this error is not outputted.
Comment 1 Sagar Patel 2019-09-03 20:09:01 UTC
Fixed in commit 728bbc1ac. 

This is a temporary patch, and will be reverted after PR13371 is fixed.