git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
c5a4428
)
examples/fips_validation: fix buffer overflow
author
Olivier Matz
<olivier.matz@6wind.com>
Mon, 13 Jul 2020 09:36:54 +0000
(11:36 +0200)
committer
Olivier Matz
<olivier.matz@6wind.com>
Fri, 31 Jul 2020 09:52:28 +0000
(11:52 +0200)
If the file name is larger than MAX_STRING_SIZE (64), strcpy()
will overwrite the content of memory.
Replace strcpy() by rte_strscpy(), check its return value, and
increase file_name size to 256.
Fixes:
3d0fad56b74a
("examples/fips_validation: add crypto FIPS application")
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
No differences found