diff options
author | Mikulas Patocka <[email protected]> | 2019-03-13 07:56:02 -0400 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2019-04-01 16:11:11 -0400 |
commit | 0d74e6a3b6421d98eeafbed26f29156d469bc0b5 (patch) | |
tree | 13b9ab66fe1553126777b6afb114612743b6778c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 79a3aaa7b82e3106be97842dedfd8429248896e6 (diff) |
dm integrity: change memcmp to strncmp in dm_integrity_ctr
If the string opt_string is small, the function memcmp can access bytes
that are beyond the terminating nul character. In theory, it could cause
segfault, if opt_string were located just below some unmapped memory.
Change from memcmp to strncmp so that we don't read bytes beyond the end
of the string.
Cc: [email protected] # v4.12+
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions