679897d0a1
Hopefully fix TOCTOU by calling fopen() before stat() At least this should prevent Coverity to complain about it: CID 1090346 (#1 of 1): Time of check time of use (TOCTOU) fs_check_call: Calling function "stat(char const *, struct stat *)" to perform check on "filename". toctou: Calling function "fopen(char const * restrict, char const * restrict)" that uses "filename" after a check function. This can cause a time-of-check, time-of-use race condition. Note that it seems pretty hard to avoid completely: https://en.wikipedia.org/wiki/Time_of_check_to_time_of_use#Preventing_TOCTTOU |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Makefile.am | ||
mifare.c | ||
mifare.h | ||
nfc-emulate-forum-tag4.1 | ||
nfc-emulate-forum-tag4.c | ||
nfc-list.1 | ||
nfc-list.c | ||
nfc-mfclassic.1 | ||
nfc-mfclassic.c | ||
nfc-mfultralight.1 | ||
nfc-mfultralight.c | ||
nfc-read-forum-tag3.1 | ||
nfc-read-forum-tag3.c | ||
nfc-relay-picc.1 | ||
nfc-relay-picc.c | ||
nfc-scan-device.1 | ||
nfc-scan-device.c | ||
nfc-utils.c | ||
nfc-utils.h |