Petr Štetiar ea1acaf5a6 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>
2019-08-04 22:09:20 +02:00
..
2019-05-22 21:27:44 +02:00
2019-06-22 10:23:56 +02:00
2019-08-04 13:53:05 +02:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2017-01-03 14:24:33 +01:00
2019-02-26 23:20:04 +01:00
2016-12-16 22:39:22 +01:00
2018-01-18 08:04:18 +01:00
2019-02-10 20:51:09 +01:00
2018-12-24 17:05:57 +01:00
2016-12-16 22:39:22 +01:00
2019-07-26 08:09:16 +02:00
2019-02-10 20:48:25 +01:00
2018-06-08 09:56:26 +02:00
2019-03-10 21:36:28 +01:00
2019-04-07 15:25:28 +02:00