libnfc/utils
Philippe Teuwen 679897d0a1 nfc-emulate-forum-tag4: fix TOCTOU
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
2013-09-22 02:29:07 +02:00
..
CMakeLists.txt Windows: Shift files from libnfc/windows to libnfc/contrib/win32 2013-02-14 15:33:47 +01:00
Makefile.am Makefile.am: move header files from noinst_HEADERS to _SOURCES 2013-02-21 22:37:20 +01:00
mifare.c Adding link to AUTHORS in the copyright headers 2013-07-17 13:57:56 +02:00
mifare.h Adding link to AUTHORS in the copyright headers 2013-07-17 13:57:56 +02:00
nfc-emulate-forum-tag4.1 utils/nfc-emulate-forum-tag4: add support for v2.0 of the spec 2012-05-14 22:13:19 +00:00
nfc-emulate-forum-tag4.c nfc-emulate-forum-tag4: fix TOCTOU 2013-09-22 02:29:07 +02:00
nfc-list.1 nfc-list: New option to choose which technologies to poll for 2013-09-09 15:58:07 +02:00
nfc-list.c nfc-list: New option to choose which technologies to poll for 2013-09-09 15:58:07 +02:00
nfc-mfclassic.1 nfc-mfclassic: add option to tolerate RW errors & other enhancements 2013-03-02 22:29:10 +01:00
nfc-mfclassic.c Verify return of nfc_device_set_property_bool() 2013-09-22 01:31:45 +02:00
nfc-mfultralight.1 allow setting of UID for special 'chinese' ultralight cards 2013-08-31 16:15:27 +01:00
nfc-mfultralight.c make style 2013-08-31 17:35:41 +02:00
nfc-read-forum-tag3.1 add missing manpages. 2011-11-22 15:23:18 +00:00
nfc-read-forum-tag3.c nfc-read-forum-tag3: remove redundant error 2013-09-22 02:14:08 +02:00
nfc-relay-picc.1 Fix some spelling mistakes 2012-05-13 13:10:15 +00:00
nfc-relay-picc.c Fix use after free bug 2013-09-19 20:38:56 +02:00
nfc-scan-device.1 Fixes invalid example in nfc-scan-device manpage 2013-03-01 17:07:40 +01:00
nfc-scan-device.c Adding link to AUTHORS in the copyright headers 2013-07-17 13:57:56 +02:00
nfc-utils.c Adding link to AUTHORS in the copyright headers 2013-07-17 13:57:56 +02:00
nfc-utils.h Adding link to AUTHORS in the copyright headers 2013-07-17 13:57:56 +02:00