aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJan Beulich <[email protected]>2012-12-17 16:01:31 -0800
committerLinus Torvalds <[email protected]>2012-12-17 17:15:18 -0800
commit53809751ac230a3611b5cdd375f3389f3207d471 (patch)
tree8555da83945aaba9291f0d9ff09d271043e36263 /tools/perf/scripts/python/bin
parent375da3a76dc49f10c35e243ebef62df12e3adf4e (diff)
sscanf: don't ignore field widths for numeric conversions
This is another step towards better standard conformance. Rather than adding a local buffer to store the specified portion of the string (with the need to enforce an arbitrary maximum supported width to limit the buffer size), do a maximum width conversion and then drop as much of it as is necessary to meet the caller's request. Also fail on negative field widths. Uses the deprecated simple_strto*() functions because kstrtoXX() fail on non-zero terminated strings. Signed-off-by: Jan Beulich <[email protected]> Cc: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions