diff options
author | Hans de Goede <[email protected]> | 2021-06-09 17:17:52 +0200 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2021-06-16 17:47:55 +0200 |
commit | 0ddcf3a6b44209e73fb21b3c53e258884ea90cef (patch) | |
tree | abf4b892d73f564cb732d0ca6f5cdae66c05f124 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 86bb2e3daf5d84c02ef40da8bf26f7b851aaa8a7 (diff) |
platform/x86: think-lmi: Avoid potential read before start of the buffer
If length equals 0 then reading buf[length-1] will read before the start
of the buffer.
Avoid this by moving the length == 0 check up.
Cc: Mark Pearson <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions