aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRichard Fitzgerald <[email protected]>2021-05-14 17:12:03 +0100
committerPetr Mladek <[email protected]>2021-05-19 15:05:11 +0200
commit11b3dda5e8b6cde957a6410233f30d6c48582998 (patch)
treedfd781d8fc3d44180d4691bdb5dc2215806d0406 /tools/perf/scripts/python/export-to-postgresql.py
parent7f3d08b255d1806502e45fe70ca2ba9646eb3aa1 (diff)
lib: vsprintf: scanf: Negative number must have field width > 1
If a signed number field starts with a '-' the field width must be > 1, or unlimited, to allow at least one digit after the '-'. This patch adds a check for this. If a signed field starts with '-' and field_width == 1 the scanf will quit. It is ok for a signed number field to have a field width of 1 if it starts with a digit. In that case the single digit can be converted. Signed-off-by: Richard Fitzgerald <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions