]> granicus.if.org Git - curl/commitdiff
checksrc: detect strtok() use
authorDaniel Stenberg <daniel@haxx.se>
Wed, 7 Sep 2016 07:26:00 +0000 (09:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Sep 2016 08:41:57 +0000 (10:41 +0200)
... as that function slipped through once before.

lib/checksrc.pl

index f31083a6354aa91e4b82eee77b190dc4b408c071..83c38b2394d3b72dca89d283738ce73eb17bf072 100755 (executable)
@@ -423,6 +423,7 @@ sub scanfile {
         # scan for use of banned functions
         if($l =~ /^(.*\W)
                    (gets|
+                   strtok|
                     v?sprintf|
                     (str|_mbs|_tcs|_wcs)n?cat|
                     LoadLibrary(Ex)?(A|W)?)