Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libwx-perl-0.9932/cpp/app.h
Examining data/libwx-perl-0.9932/cpp/array_helpers.h
Examining data/libwx-perl-0.9932/cpp/chkconfig.h
Examining data/libwx-perl-0.9932/cpp/compat.h
Examining data/libwx-perl-0.9932/cpp/constants.h
Examining data/libwx-perl-0.9932/cpp/controls.cpp
Examining data/libwx-perl-0.9932/cpp/controls.h
Examining data/libwx-perl-0.9932/cpp/dialog.h
Examining data/libwx-perl-0.9932/cpp/event.h
Examining data/libwx-perl-0.9932/cpp/e_cback.cpp
Examining data/libwx-perl-0.9932/cpp/e_cback.h
Examining data/libwx-perl-0.9932/cpp/frame.h
Examining data/libwx-perl-0.9932/cpp/helpers.cpp
Examining data/libwx-perl-0.9932/cpp/helpers.h
Examining data/libwx-perl-0.9932/cpp/log.h
Examining data/libwx-perl-0.9932/cpp/overload.h
Examining data/libwx-perl-0.9932/cpp/panel.h
Examining data/libwx-perl-0.9932/cpp/process.h
Examining data/libwx-perl-0.9932/cpp/scrolledwindow.h
Examining data/libwx-perl-0.9932/cpp/singlechoicedialog.h
Examining data/libwx-perl-0.9932/cpp/sizer.h
Examining data/libwx-perl-0.9932/cpp/streams.cpp
Examining data/libwx-perl-0.9932/cpp/streams.h
Examining data/libwx-perl-0.9932/cpp/timer.h
Examining data/libwx-perl-0.9932/cpp/tipprovider.h
Examining data/libwx-perl-0.9932/cpp/validators.h
Examining data/libwx-perl-0.9932/cpp/v_cback.cpp
Examining data/libwx-perl-0.9932/cpp/v_cback.h
Examining data/libwx-perl-0.9932/cpp/window.h
Examining data/libwx-perl-0.9932/cpp/wizard.h
Examining data/libwx-perl-0.9932/cpp/wxapi.h
Examining data/libwx-perl-0.9932/cpp/wxPerl.osx/main.c
Examining data/libwx-perl-0.9932/cpp/wxsizer.h
Examining data/libwx-perl-0.9932/cpp/overload.cpp
Examining data/libwx-perl-0.9932/ext/dnd/cpp/dataobject.h
Examining data/libwx-perl-0.9932/ext/dnd/cpp/dn_constants.cpp
Examining data/libwx-perl-0.9932/ext/dnd/cpp/dropsource.h
Examining data/libwx-perl-0.9932/ext/dnd/cpp/droptarget.h
Examining data/libwx-perl-0.9932/ext/docview/cpp/docview.h
Examining data/libwx-perl-0.9932/ext/docview/cpp/dv_constants.cpp
Examining data/libwx-perl-0.9932/ext/filesys/cpp/fshandler.h
Examining data/libwx-perl-0.9932/ext/grid/cpp/editor.h
Examining data/libwx-perl-0.9932/ext/grid/cpp/gr_constants.cpp
Examining data/libwx-perl-0.9932/ext/grid/cpp/renderer.h
Examining data/libwx-perl-0.9932/ext/html/cpp/htmlwindow.h
Examining data/libwx-perl-0.9932/ext/html/cpp/ht_constants.cpp
Examining data/libwx-perl-0.9932/ext/ipc/cpp/ipc.h
Examining data/libwx-perl-0.9932/ext/mdi/cpp/mdi.h
Examining data/libwx-perl-0.9932/ext/media/cpp/me_constants.cpp
Examining data/libwx-perl-0.9932/ext/print/cpp/printout.h
Examining data/libwx-perl-0.9932/ext/print/cpp/pr_constants.cpp
Examining data/libwx-perl-0.9932/ext/propgrid/cpp/propgrid_constants.cpp
Examining data/libwx-perl-0.9932/ext/propgrid/cpp/propgrid_declares.h
Examining data/libwx-perl-0.9932/ext/ribbon/cpp/ribbongalleryitem.h
Examining data/libwx-perl-0.9932/ext/ribbon/cpp/ribbon_constants.cpp
Examining data/libwx-perl-0.9932/ext/ribbon/cpp/toolbarbases.h
Examining data/libwx-perl-0.9932/ext/socket/cpp/sk_constants.cpp
Examining data/libwx-perl-0.9932/ext/socket/cpp/socket.h
Examining data/libwx-perl-0.9932/ext/stc/cpp/st_constants.cpp
Examining data/libwx-perl-0.9932/ext/test/cpp/include/perltest.h
Examining data/libwx-perl-0.9932/ext/test/cpp/src/perltest.cpp
Examining data/libwx-perl-0.9932/ext/xrc/cpp/xr_constants.cpp
Examining data/libwx-perl-0.9932/interface/wx/bannerwindow.h
Examining data/libwx-perl-0.9932/interface/wx/bmpbuttn.h
Examining data/libwx-perl-0.9932/interface/wx/button.h
Examining data/libwx-perl-0.9932/interface/wx/commandlinkbutton.h
Examining data/libwx-perl-0.9932/interface/wx/dataview/dataviewlistctrl.h
Examining data/libwx-perl-0.9932/interface/wx/dataview/dataviewliststore.h
Examining data/libwx-perl-0.9932/interface/wx/dataview/dataviewvirtuallistmodel.h
Examining data/libwx-perl-0.9932/interface/wx/generic/spinctrg.h
Examining data/libwx-perl-0.9932/interface/wx/grid/gridtablebase.h
Examining data/libwx-perl-0.9932/interface/wx/headercol.h
Examining data/libwx-perl-0.9932/interface/wx/headerctrl.h
Examining data/libwx-perl-0.9932/interface/wx/infobar.h
Examining data/libwx-perl-0.9932/interface/wx/rearrangectrl.h
Examining data/libwx-perl-0.9932/interface/wx/richtooltip.h
Examining data/libwx-perl-0.9932/interface/wx/treelist.h
Examining data/libwx-perl-0.9932/interface/wx/uiaction.h

FINAL RESULTS:

data/libwx-perl-0.9932/cpp/helpers.cpp:203:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy( buffer+4, className );
data/libwx-perl-0.9932/cpp/helpers.cpp:1391:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy( wxrbuffer, (package) );            \
data/libwx-perl-0.9932/cpp/helpers.cpp:1556:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat( buffer, name );
data/libwx-perl-0.9932/cpp/overload.cpp:132:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat( buffer, name );
data/libwx-perl-0.9932/cpp/wxapi.h:147:8:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vfprintf
data/libwx-perl-0.9932/ext/docview/cpp/docview.h:550:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy( buffer, className.c_str() );
data/libwx-perl-0.9932/cpp/wxapi.h:134:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#undef getenv
data/libwx-perl-0.9932/cpp/wxapi.h:144:8:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#undef tmpnam
data/libwx-perl-0.9932/cpp/e_cback.cpp:68:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[WXPL_BUF_SIZE];
data/libwx-perl-0.9932/cpp/event.h:129:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[30];
data/libwx-perl-0.9932/cpp/event.h:134:22:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            length = sprintf( buffer, "%d", data_id );
data/libwx-perl-0.9932/cpp/event.h:161:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[30];
data/libwx-perl-0.9932/cpp/event.h:162:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        size_t length = sprintf( buffer, "%d", m_data );
data/libwx-perl-0.9932/cpp/event.h:181:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[30];
data/libwx-perl-0.9932/cpp/event.h:182:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        size_t length = sprintf( buffer, "%d", m_data );
data/libwx-perl-0.9932/cpp/helpers.cpp:187:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                    char buffer[WXPL_BUF_SIZE] ) 
data/libwx-perl-0.9932/cpp/helpers.cpp:189:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy( buffer, "Wx::" );
data/libwx-perl-0.9932/cpp/helpers.cpp:413:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[WXPL_BUF_SIZE];
data/libwx-perl-0.9932/cpp/helpers.cpp:879:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( t, s, len * sizeof(wxChar) );
data/libwx-perl-0.9932/cpp/helpers.cpp:890:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( t, s, len );
data/libwx-perl-0.9932/cpp/helpers.cpp:942:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer, tmp.data(), length * sizeof(wxChar) );
data/libwx-perl-0.9932/cpp/helpers.cpp:955:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer, tmp, length * sizeof(char) );
data/libwx-perl-0.9932/cpp/helpers.cpp:1390:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char wxrbuffer[512];                       \
data/libwx-perl-0.9932/cpp/helpers.cpp:1392:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat( wxrbuffer, "::_thr_register" );    \
data/libwx-perl-0.9932/cpp/helpers.cpp:1396:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char wxkey[40];                \
data/libwx-perl-0.9932/cpp/helpers.cpp:1397:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( wxkey, "%p", (ptr) ); \
data/libwx-perl-0.9932/cpp/helpers.cpp:1551:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/libwx-perl-0.9932/cpp/helpers.cpp:1555:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy( buffer, "Wx::Event::" );
data/libwx-perl-0.9932/cpp/helpers.h:210:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                               char buffer[WXPL_BUF_SIZE] );
data/libwx-perl-0.9932/cpp/helpers.h:494:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                                char buffer[WXPL_BUF_SIZE] );
data/libwx-perl-0.9932/cpp/overload.cpp:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/libwx-perl-0.9932/cpp/overload.cpp:131:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy( buffer, "Wx::_" );
data/libwx-perl-0.9932/cpp/singlechoicedialog.h:48:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( m_data, clientdata, n * sizeof( SV* ) );
data/libwx-perl-0.9932/cpp/streams.cpp:180:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( buffer, SvPV_nolen( target ), read_count );
data/libwx-perl-0.9932/cpp/wxapi.h:122:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#undef fopen
data/libwx-perl-0.9932/cpp/wxapi.h:136:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#undef open
data/libwx-perl-0.9932/cpp/wxapi.h:143:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#undef tmpfile
data/libwx-perl-0.9932/ext/dnd/cpp/dataobject.h:70:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( param1, val, len );
data/libwx-perl-0.9932/ext/docview/cpp/docview.h:546:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[WXPL_BUF_SIZE];
data/libwx-perl-0.9932/cpp/helpers.cpp:1411:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hv_store( wxhash, wxkey, strlen(wxkey), nsv, 0 );
data/libwx-perl-0.9932/cpp/helpers.cpp:1427:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hv_delete( wxhash, wxkey, strlen(wxkey), 0 );   
data/libwx-perl-0.9932/cpp/wxapi.h:133:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getc
data/libwx-perl-0.9932/cpp/wxapi.h:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef read
data/libwx-perl-0.9932/ext/stc/cpp/st_constants.cpp:24:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen( name ) >= 7 )

ANALYSIS SUMMARY:

Hits = 44
Lines analyzed = 18187 in approximately 0.48 seconds (37516 lines/second)
Physical Source Lines of Code (SLOC) = 11733
Hits@level = [0]   1 [1]   5 [2]  31 [3]   2 [4]   6 [5]   0
Hits@level+ = [0+]  45 [1+]  44 [2+]  39 [3+]   8 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 3.83534 [1+] 3.75011 [2+] 3.32396 [3+] 0.681838 [4+] 0.511378 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.