diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-02 08:28:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-02 08:28:10 +0200 |
commit | 33ee4118483111876c00e68004bc50674992eda2 (patch) | |
tree | 66e7040773cd32fd87e4f696c73f49e737dc25eb /lib/checksrc.whitelist | |
parent | 3bbcb4b03605bafa0d8e79f82240b1bc8de7a7e7 (diff) |
checksrc: detect fopen() for text without the FOPEN_* macros
Follow-up to e8423f9ce150 with discussionis in
https://github.com/bagder/curl/pull/258
This check scans for fopen() with a mode string without 'b' present, as
it may indicate that an FOPEN_* define should rather be used.
Diffstat (limited to 'lib/checksrc.whitelist')
-rw-r--r-- | lib/checksrc.whitelist | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/checksrc.whitelist b/lib/checksrc.whitelist index da7b75dc0..e261b9da1 100644 --- a/lib/checksrc.whitelist +++ b/lib/checksrc.whitelist @@ -4,3 +4,7 @@ 150 Opening ASCII mode data connection for [file] (0.0.0.0,0) (545 bytes) * no_proxy=domain1.dom,host.domain2.dom Default values are (0,0) initialized by calloc. + file = fopen(name, "r"); /* VMS */ + return fopen(file, "r"); /* VMS */ + return fopen(file, "r", "rfm=stmlf", "ctx=stm"); + curl_memlog("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n", |