Nmap Development mailing list archives

Static Code Analyzer Bugs


From: Glafkos Charalambous <glafkos () me com>
Date: Tue, 29 Apr 2014 22:24:50 +0300

Hello,

I have compiled NMap latest source code in MacOS X and I am attaching you the reports for your reference. 
Have used clang static analyzer


Bug Group       Bug Type ▾      File    Line    Path Length                     
API     Argument with 'nonnull' attribute passed null   ncat /ncat_listen.c     850     77      View Report     Report 
Bug      Open File
API     Argument with 'nonnull' attribute passed null   ncat /ncat_listen.c     323     34      View Report     Report 
Bug      Open File
API     Argument with 'nonnull' attribute passed null   ncat /ncat_listen.c     733     25      View Report     Report 
Bug      Open File
API     Argument with 'nonnull' attribute passed null   ncat /ncat_proxy.c      260     16      View Report     Report 
Bug      Open File
Logic error     Array subscript is undefined    liblinear /linear.cpp   2050    12      View Report     Report Bug      
Open File
Logic error     Array subscript is undefined    liblinear /linear.cpp   2062    21      View Report     Report Bug      
Open File
Logic error     Assigned value is garbage or undefined  liblinear /linear.cpp   1937    9       View Report     Report 
Bug      Open File
Logic error     Assigned value is garbage or undefined  liblinear /linear.cpp   2279    10      View Report     Report 
Bug      Open File
Logic error     Assigned value is garbage or undefined  libpcre /pcre_get.c     198     8       View Report     Report 
Bug      Open File
Logic error     Assigned value is garbage or undefined  liblinear /linear.cpp   2266    10      View Report     Report 
Bug      Open File
Logic error     Assigned value is garbage or undefined  liblinear /linear.cpp   2000    22      View Report     Report 
Bug      Open File
Dead store      Dead assignment nbase /nbase_misc.c     713     1       View Report     Report Bug      Open File
Dead store      Dead assignment nbase /nbase_misc.c     343     1       View Report     Report Bug      Open File
Dead store      Dead assignment libnetutil /PacketParser.cc     638     1       View Report     Report Bug      Open 
File
Dead store      Dead assignment nsock /src /nsock_connect.c     522     1       View Report     Report Bug      Open 
File
Dead store      Dead assignment nsock /src /nsock_core.c        780     1       View Report     Report Bug      Open 
File
Dead store      Dead assignment libpcre /conftest.c     49      1       View Report     Report Bug      Open File
Dead store      Dead assignment nbase /nbase_misc.c     342     1       View Report     Report Bug      Open File
Logic error     Dereference of null pointer     nping /common_modified.cc       526     25      View Report     Report 
Bug      Open File
Logic error     Dereference of null pointer     nsock /src /nsock_core.c        343     9       View Report     Report 
Bug      Open File
Logic error     Dereference of null pointer     liblua /liolib.c        444     11      View Report     Report Bug      
Open File
Logic error     Dereference of null pointer     libdnet-stripped /src /route-bsd.c      159     9       View Report     
Report Bug      Open File
Logic error     Dereference of null pointer     nsock /src /nsock_core.c        424     4       View Report     Report 
Bug      Open File
Logic error     Dereference of null pointer     nsock /src /nsock_proxy.c       149     3       View Report     Report 
Bug      Open File
Logic error     Dereference of null pointer     libnetutil /IPv4Header.cc       685     3       View Report     Report 
Bug      Open File
Memory Error    Double free     ncat /http.c    1657    18      View Report     Report Bug      Open File
Memory Error    Double free     ncat /http.c    285     25      View Report     Report Bug      Open File
Memory Error    Memory leak     liblinear /linear.cpp   2299    26      View Report     Report Bug      Open File
Logic error     Result of operation is garbage or undefined     liblinear /linear.cpp   2280    14      View Report     
Report Bug      Open File
Logic error     Result of operation is garbage or undefined     liblinear /linear.cpp   2286    24      View Report     
Report Bug      Open File
Logic error     Result of operation is garbage or undefined     libdnet-stripped /src /addr.c   94      8       View 
Report     Report Bug      Open File
Logic error     Result of operation is garbage or undefined     libdnet-stripped /src /addr.c   113     12      View 
Report     Report Bug      Open File
Logic error     Result of operation is garbage or undefined     liblinear /linear.cpp   2286    20      View Report     
Report Bug      Open File
Unix API        Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131) liblinear /linear.cpp   1958    14      View 
Report     Report Bug      Open File
Unix API        Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131) liblinear /linear.cpp   1805    5       View 
Report     Report Bug      Open File
Unix API        Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131) liblinear /linear.cpp   1982    15      View 
Report     Report Bug      Open File
Logic error     Unix API        nping /common_modified.cc       828     7       View Report     Report Bug      Open 
File
Logic error     Unix API        nping /common_modified.cc       827     8       View Report     Report Bug      Open 
File

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: