diff options
author | Kalesh Singh <[email protected]> | 2021-11-12 11:13:24 -0800 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2021-11-12 15:55:59 -0500 |
commit | 1cab6bce42e62bba2ff2c2370d139618c1828b42 (patch) | |
tree | 11476bdb7fd62f116e55dd67f92ea9c92bd9100e /lib/test_overflow.c | |
parent | 63f84ae6b82bb4dff672f76f30c6fd7b9d3766bc (diff) |
tracing/histogram: Fix check for missing operands in an expression
If a binary operation is detected while parsing an expression string,
the operand strings are deduced by splitting the experssion string at
the position of the detected binary operator. Both operand strings are
sub-strings (can be empty string) of the expression string but will
never be NULL.
Currently a NULL check is used for missing operands, fix this by
checking for empty strings instead.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kalesh Singh <[email protected]>
Fixes: 9710b2f341a0 ("tracing: Fix operator precedence for hist triggers expression")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions