examples/fips_validation: fix buffer overflow
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 13 Jul 2020 09:36:54 +0000 (11:36 +0200)
committerOlivier 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