Bug 24947

Summary: valid hex and octal sequences not checked for
Product: systemtap Reporter: Sagar Patel <sapatel>
Component: bpfAssignee: Unassigned <systemtap>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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.