diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-07-31 14:07:11 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-08-04 22:09:20 +0200 |
commit | ea1acaf5a697a3b3e0cd5c778d2c3930d7d6812b (patch) | |
tree | 288ff07e63e458517b9a197bb9c2a56e9bfe7d7c /target/linux/brcm2708/patches-4.19/950-0282-media-vb2-Allow-reqbufs-0-with-in-use-MMAP-buffers.patch | |
parent | 6e300f6a0c94812d0f4d8f67df6604c763f7552f (diff) | |
download | upstream-ea1acaf5a697a3b3e0cd5c778d2c3930d7d6812b.tar.gz upstream-ea1acaf5a697a3b3e0cd5c778d2c3930d7d6812b.tar.bz2 upstream-ea1acaf5a697a3b3e0cd5c778d2c3930d7d6812b.zip |
firmware-utils: uimage_padhdr: fix Coverity issue
Fixes following issue reported by Coverity scan:
*** CID 1452085: Security best practices violations (TOCTOU)
/tools/firmware-utils/src/uimage_padhdr.c: 100 in main()
94
95 if (!infname || !outfname) {
96 usage(argv[0]);
97 exit(1);
98 }
99
>>> CID 1452085: Security best practices violations (TOCTOU)
>>> Calling function "stat" to perform check on "infname".
100 if (stat(infname, &statbuf) < 0) {
Fixes: a1c6a316d299 ("ramips: add support for Fon FON2601")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0282-media-vb2-Allow-reqbufs-0-with-in-use-MMAP-buffers.patch')
0 files changed, 0 insertions, 0 deletions