ea1acaf5a6
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:
|
||
---|---|---|
.. | ||
autoconf | ||
automake | ||
b43-tools | ||
bc | ||
bison | ||
cbootimage | ||
cbootimage-configs | ||
ccache | ||
cmake | ||
coreutils | ||
dosfstools | ||
e2fsprogs | ||
elftosb | ||
expat | ||
findutils | ||
firmware-utils | ||
flex | ||
flock | ||
genext2fs | ||
gengetopt | ||
gmp | ||
include | ||
isl | ||
kernel2minor | ||
libelf | ||
libressl | ||
libtool | ||
lzma | ||
lzma-old | ||
m4 | ||
make-ext4fs | ||
missing-macros | ||
mkimage | ||
mklibs | ||
mm-macros | ||
mpc | ||
mpfr | ||
mtd-utils | ||
mtools | ||
padjffs2 | ||
patch | ||
patch-image | ||
patchelf | ||
pkg-config | ||
qemu | ||
quilt | ||
scons | ||
sdimage | ||
sed | ||
sparse | ||
squashfs | ||
squashfskit4 | ||
sstrip | ||
tar | ||
upslug2 | ||
wrt350nv2-builder | ||
xz | ||
zip | ||
zlib | ||
Makefile |