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/emoslib-4.5.9/pbio/readany.c
Examining data/emoslib-4.5.9/pbio/fort2c.h
Examining data/emoslib-4.5.9/pbio/sizeRoutines.h
Examining data/emoslib-4.5.9/pbio/readprod.c
Examining data/emoslib-4.5.9/pbio/fileRead.h
Examining data/emoslib-4.5.9/pbio/lwsize.c
Examining data/emoslib-4.5.9/pbio/gbyte_alpha.c
Examining data/emoslib-4.5.9/pbio/gbyte_le.c
Examining data/emoslib-4.5.9/pbio/pbio.c
Examining data/emoslib-4.5.9/pbio/readnext.c
Examining data/emoslib-4.5.9/pbio/crexrd.c
Examining data/emoslib-4.5.9/pbio/recheckLength.c
Examining data/emoslib-4.5.9/pbio/fort2c.c
Examining data/emoslib-4.5.9/pbio/pbsize.c
Examining data/emoslib-4.5.9/pbio/pbio_alpha.c
Examining data/emoslib-4.5.9/pbio/mvchars.c
Examining data/emoslib-4.5.9/pbio/readgrib.c
Examining data/emoslib-4.5.9/pbio/pbfp.c
Examining data/emoslib-4.5.9/pbio/fortran.h
Examining data/emoslib-4.5.9/pbio/PBGroutines.c
Examining data/emoslib-4.5.9/pbio/readprod_alpha.c
Examining data/emoslib-4.5.9/pbio/newpbio.c
Examining data/emoslib-4.5.9/pbio/fort2c_hppa.c
Examining data/emoslib-4.5.9/pbio/readbufr.c
Examining data/emoslib-4.5.9/pbio/extras.c
Examining data/emoslib-4.5.9/pbio/gbyte.c
Examining data/emoslib-4.5.9/pbio/PBGroutines.h
Examining data/emoslib-4.5.9/pbio/setpar.c
Examining data/emoslib-4.5.9/pbio/readcrex.c
Examining data/emoslib-4.5.9/pbio/bufrgrib.h
Examining data/emoslib-4.5.9/bufrdc_wmo/grprs.h
Examining data/emoslib-4.5.9/common/grprs.h
Examining data/emoslib-4.5.9/common/fortint.h
Examining data/emoslib-4.5.9/common/JPointer.h
Examining data/emoslib-4.5.9/common/fortreal.h
Examining data/emoslib-4.5.9/gribex/ecdef14.h
Examining data/emoslib-4.5.9/gribex/ecdef50.h
Examining data/emoslib-4.5.9/gribex/comars.h
Examining data/emoslib-4.5.9/gribex/sencode2.h
Examining data/emoslib-4.5.9/gribex/ecdef17.h
Examining data/emoslib-4.5.9/gribex/ecdef11.h
Examining data/emoslib-4.5.9/gribex/getValues.h
Examining data/emoslib-4.5.9/gribex/comgrb.h
Examining data/emoslib-4.5.9/gribex/ecdef19.h
Examining data/emoslib-4.5.9/gribex/ecdef9.h
Examining data/emoslib-4.5.9/gribex/ecdf191.h
Examining data/emoslib-4.5.9/gribex/ecdf190.h
Examining data/emoslib-4.5.9/gribex/ECMWFdefinitions.h
Examining data/emoslib-4.5.9/gribex/fortranInterface.c
Examining data/emoslib-4.5.9/gribex/gdecode.c
Examining data/emoslib-4.5.9/gribex/handleLocalDefinitions.c
Examining data/emoslib-4.5.9/gribex/dsgnbt.c
Examining data/emoslib-4.5.9/gribex/orefdat.c
Examining data/emoslib-4.5.9/gribex/sencode.c
Examining data/emoslib-4.5.9/gribex/local2c.c
Examining data/emoslib-4.5.9/gribex/fortvalues.h
Examining data/emoslib-4.5.9/gribex/ecdef15.h
Examining data/emoslib-4.5.9/gribex/ecdef12.h
Examining data/emoslib-4.5.9/gribex/ECMWFdefinitions.c
Examining data/emoslib-4.5.9/gribex/ecdef21.h
Examining data/emoslib-4.5.9/gribex/jmalloc.c
Examining data/emoslib-4.5.9/gribex/ecdef2.h
Examining data/emoslib-4.5.9/gribex/ecdef8.h
Examining data/emoslib-4.5.9/gribex/csgnbt.c
Examining data/emoslib-4.5.9/gribex/grbcom.h
Examining data/emoslib-4.5.9/gribex/ecdef3.h
Examining data/emoslib-4.5.9/gribex/gdecode.h
Examining data/emoslib-4.5.9/gribex/gdecode2.h
Examining data/emoslib-4.5.9/gribex/sencode1.h
Examining data/emoslib-4.5.9/gribex/ecdef7.h
Examining data/emoslib-4.5.9/gribex/emoslibVersion.c
Examining data/emoslib-4.5.9/gribex/ecdef16.h
Examining data/emoslib-4.5.9/gribex/comcomm.h
Examining data/emoslib-4.5.9/gribex/ecdef1.h
Examining data/emoslib-4.5.9/gribex/sfbits.h
Examining data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c
Examining data/emoslib-4.5.9/gribex/sencode.h
Examining data/emoslib-4.5.9/gribex/jabort.c
Examining data/emoslib-4.5.9/gribex/ecdef5.h
Examining data/emoslib-4.5.9/gribex/ecdef6.h
Examining data/emoslib-4.5.9/gribex/jfree.c
Examining data/emoslib-4.5.9/gribex/ecdef13.h
Examining data/emoslib-4.5.9/gribex/valpina.c
Examining data/emoslib-4.5.9/gribex/gribex.h
Examining data/emoslib-4.5.9/gribex/handleLocalDefinitions.h
Examining data/emoslib-4.5.9/gribex/ecdef10.h
Examining data/emoslib-4.5.9/gribex/getsetValues.h
Examining data/emoslib-4.5.9/gribex/ecdef4.h
Examining data/emoslib-4.5.9/gribex/bt_sun_c.c
Examining data/emoslib-4.5.9/gribex/grib_int_t.h
Examining data/emoslib-4.5.9/gribex/swap4.c
Examining data/emoslib-4.5.9/gribex/gdecode1.c
Examining data/emoslib-4.5.9/gribex/getValues.c
Examining data/emoslib-4.5.9/gribex/sencode1.c
Examining data/emoslib-4.5.9/gribex/eocsec2.h
Examining data/emoslib-4.5.9/gribex/ecdef18.h
Examining data/emoslib-4.5.9/gribex/gdecodeStruct.h
Examining data/emoslib-4.5.9/gribex/sencode2.c
Examining data/emoslib-4.5.9/gribex/gdecode2.c
Examining data/emoslib-4.5.9/gribex/grpr190.c
Examining data/emoslib-4.5.9/gribex/gdecode1.h
Examining data/emoslib-4.5.9/gribex/getsetValues.c
Examining data/emoslib-4.5.9/gribex/cgsloop.c
Examining data/emoslib-4.5.9/tools/gg_single.c
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comsubs.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comwrt.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comrec.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/combase.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comwrtc.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comstation.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comstat.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/parbuf.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comwtc.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/cominit.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comstd.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/combuff.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/parameter.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comkey.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comkeyc.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comerrorc.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comindx.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comwork.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/comerror.h
Examining data/emoslib-4.5.9/tools/bufr_exports/synop2bufr/compoin.h
Examining data/emoslib-4.5.9/tools/gg_gridname.c
Examining data/emoslib-4.5.9/tools/lsmReducedGaussian/bitPack.c
Examining data/emoslib-4.5.9/tools/except.c
Examining data/emoslib-4.5.9/interpolation/emos.h
Examining data/emoslib-4.5.9/interpolation/bitmap.h
Examining data/emoslib-4.5.9/interpolation/intlog.h
Examining data/emoslib-4.5.9/interpolation/sharedgg.c
Examining data/emoslib-4.5.9/interpolation/intf.h
Examining data/emoslib-4.5.9/interpolation/rgauss_256.h
Examining data/emoslib-4.5.9/interpolation/rgauss_512.h
Examining data/emoslib-4.5.9/interpolation/makemap.c
Examining data/emoslib-4.5.9/interpolation/sharedlib.c
Examining data/emoslib-4.5.9/interpolation/jopnllsm.c
Examining data/emoslib-4.5.9/interpolation/sharedll.c
Examining data/emoslib-4.5.9/interpolation/grfixed.h
Examining data/emoslib-4.5.9/interpolation/jopnggsm.c
Examining data/emoslib-4.5.9/interpolation/rgauss_048.h
Examining data/emoslib-4.5.9/interpolation/hirlam_userspace.c
Examining data/emoslib-4.5.9/interpolation/grdynam.h
Examining data/emoslib-4.5.9/interpolation/rgauss_200.h
Examining data/emoslib-4.5.9/interpolation/grspace.h
Examining data/emoslib-4.5.9/interpolation/itimer.c
Examining data/emoslib-4.5.9/interpolation/rgauss_064.h
Examining data/emoslib-4.5.9/interpolation/copy_spec_from_ksec.c
Examining data/emoslib-4.5.9/interpolation/rgauss_128.h
Examining data/emoslib-4.5.9/interpolation/parim.h
Examining data/emoslib-4.5.9/interpolation/rgauss_1280.h
Examining data/emoslib-4.5.9/interpolation/intvect2.c
Examining data/emoslib-4.5.9/interpolation/rgauss_096.h
Examining data/emoslib-4.5.9/interpolation/jparam2.h
Examining data/emoslib-4.5.9/interpolation/gmapbit.c
Examining data/emoslib-4.5.9/interpolation/rgauss_320.h
Examining data/emoslib-4.5.9/interpolation/describe_input_field.c
Examining data/emoslib-4.5.9/interpolation/rgauss_2000.h
Examining data/emoslib-4.5.9/interpolation/emos.c
Examining data/emoslib-4.5.9/interpolation/intisl.h
Examining data/emoslib-4.5.9/interpolation/shareddt.c
Examining data/emoslib-4.5.9/interpolation/rgauss_1024.h
Examining data/emoslib-4.5.9/interpolation/fftchk.c
Examining data/emoslib-4.5.9/interpolation/jparams.h
Examining data/emoslib-4.5.9/interpolation/current.h
Examining data/emoslib-4.5.9/interpolation/rename_unlink.c
Examining data/emoslib-4.5.9/interpolation/intuvp2.c
Examining data/emoslib-4.5.9/interpolation/intf2.c
Examining data/emoslib-4.5.9/interpolation/sharedlib.h
Examining data/emoslib-4.5.9/interpolation/rgauss_400.h
Examining data/emoslib-4.5.9/interpolation/jindex.c
Examining data/emoslib-4.5.9/interpolation/rgauss_160_19931222.h
Examining data/emoslib-4.5.9/interpolation/rgauss_032.h
Examining data/emoslib-4.5.9/interpolation/rgauss_080.h
Examining data/emoslib-4.5.9/interpolation/rgauss_160.h
Examining data/emoslib-4.5.9/interpolation/intlogs.c
Examining data/emoslib-4.5.9/interpolation/memreq.h
Examining data/emoslib-4.5.9/interpolation/emosPrecision.c
Examining data/emoslib-4.5.9/interpolation/rgauss_080_19940113.h
Examining data/emoslib-4.5.9/interpolation/rgauss_640.h
Examining data/emoslib-4.5.9/interpolation/intuvs2.c
Examining data/emoslib-4.5.9/interpolation/jchmod.c
Examining data/emoslib-4.5.9/cmake/include/ecbuild/boost_test_framework.h
Examining data/emoslib-4.5.9/cmake/pymain.c
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/rvalue_references-N2118.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/initialization.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/sizeof_member-N2253.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/override.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/type_traits.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/long_double.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/lambda-N2927.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/nullptr-N2431.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/static_assert-N1720.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/constructor_delegate.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/long_long-N1811.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/enable_if.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/auto-N2546.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/__func__-N2340.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/deleted_constructor_fail_compile.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/begin_function.cc
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/random_device.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/override_fail_compile.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/constexpr-N2235.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/deleted_constructor.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/variadic_templates-N2555.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/unique_ptr.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/cstdint.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/shared_ptr.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/template_alias.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/explicit_cast.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/nullptr-N2431_fail_compile.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/noexcept.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/trivial_type_traits.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/static_assert-N1720_fail_compile.cpp
Examining data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/decltype-N2343.cpp
Examining data/emoslib-4.5.9/sandbox/emos_tool.c
Examining data/emoslib-4.5.9/version.c

FINAL RESULTS:

data/emoslib-4.5.9/interpolation/jchmod.c:57:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    status = chmod(name, mode);
data/emoslib-4.5.9/interpolation/jopnggsm.c:342:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    status = chmod( filedum, (mode_t) 0444 );
data/emoslib-4.5.9/interpolation/jopnllsm.c:364:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    status = chmod( filedum, (mode_t) 0444 );
data/emoslib-4.5.9/gribex/comars.h:98:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
C     COPSYS - Name of computer operating system.
data/emoslib-4.5.9/gribex/comars.h:140:41:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C              NEVER , Never attempt to access FDB.
data/emoslib-4.5.9/gribex/comars.h:141:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C              ALWAYS, Always attempt to access FDB.
data/emoslib-4.5.9/gribex/ecdef13.h:59:61:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
C     64            -           Flag to show whether or not system and method
data/emoslib-4.5.9/gribex/ecdef4.h:63:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
C       The physical meaning of the (x,y,z,t) coordinate system is
data/emoslib-4.5.9/gribex/ecdef4.h:66:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
C      44  Fundamental spatial reference system (Planet flag)
data/emoslib-4.5.9/gribex/ecdef4.h:129:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
C       at angles to the coordinate system.
data/emoslib-4.5.9/gribex/ecdef4.h:184:64:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
C             0 = normal grid (all rows have same x-coordinate system)
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:82: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(&fullFileName[n+1],fileName);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:94:3:  [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(&fullFileName[n+1],fileName);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:107:8:  [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(&fullFileName[n+1],fileName);
data/emoslib-4.5.9/gribex/fortranInterface.c:216:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf((printLine+37),"      %s",value);
data/emoslib-4.5.9/gribex/fortranInterface.c:221:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf((printLine+37),"      %s",value);
data/emoslib-4.5.9/gribex/fortranInterface.c:244:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf((printLine+37),"  %s",value);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1360:11:  [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(line,definition);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1375:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      sscanf(line,"%s %s %s %s %s",description,octet,code,ksec1,count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1549:11:  [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(line,definition);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1564:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      sscanf(line,"%s %s %s %s %s",description,octet,code,ksec1,count);
data/emoslib-4.5.9/gribex/local2c.c:70:9:  [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( yfile, TABLE_PATH);
data/emoslib-4.5.9/gribex/local2c.c:75:9:  [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( yfile, pyfile);
data/emoslib-4.5.9/gribex/local2c.c:106:13:  [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(hfirst,buffer);
data/emoslib-4.5.9/gribex/local2c.c:110:13:  [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(hsecond,buffer);
data/emoslib-4.5.9/gribex/local2c.c:114:13:  [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(hthird,buffer);
data/emoslib-4.5.9/gribex/local2c.c:118:13:  [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(hfourth,buffer);
data/emoslib-4.5.9/interpolation/jopnggsm.c:270: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( filename, fn );
data/emoslib-4.5.9/interpolation/jopnggsm.c:272: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnggsm.c:284: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnggsm.c:300:7:  [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( filename, fn );
data/emoslib-4.5.9/interpolation/jopnggsm.c:306: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnggsm.c:316: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(filedum, filename);
data/emoslib-4.5.9/interpolation/jopnggsm.c:324:7:  [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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnggsm.c:325:7:  [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(filedum, filename);
data/emoslib-4.5.9/interpolation/jopnggsm.c:434:3:  [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( yarray[ncnt], ypfn);
data/emoslib-4.5.9/interpolation/jopnllsm.c:292: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( filename, fn );
data/emoslib-4.5.9/interpolation/jopnllsm.c:294: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnllsm.c:306: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnllsm.c:322:7:  [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( filename, fn );
data/emoslib-4.5.9/interpolation/jopnllsm.c:328: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnllsm.c:338: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(filedum, filename);
data/emoslib-4.5.9/interpolation/jopnllsm.c:346:7:  [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( filename, ypfn);
data/emoslib-4.5.9/interpolation/jopnllsm.c:347:7:  [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(filedum, filename);
data/emoslib-4.5.9/interpolation/jopnllsm.c:459:3:  [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( yarray[ncnt], ypfn);
data/emoslib-4.5.9/interpolation/parim.h:365:52:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C                     This may be used to simplify access to quasi
data/emoslib-4.5.9/interpolation/parim.h:531:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_N        - An array index used to access the input
data/emoslib-4.5.9/interpolation/parim.h:534:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_S        - An array index used to access the input
data/emoslib-4.5.9/interpolation/parim.h:537:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_W        - An array index used to access the input points
data/emoslib-4.5.9/interpolation/parim.h:539:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_E        - An array index used to access the input points
data/emoslib-4.5.9/interpolation/parim.h:542:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_NW       - An array index used to access the weight array
data/emoslib-4.5.9/interpolation/parim.h:545:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_NE       - An array index used to access the weight array
data/emoslib-4.5.9/interpolation/parim.h:548:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_SW       - An array index used to access the weight array
data/emoslib-4.5.9/interpolation/parim.h:551:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JP_I_SE       - An array index used to access the weight array
data/emoslib-4.5.9/interpolation/parim.h:555:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JPNORTH       - An array index used to access the Northern
data/emoslib-4.5.9/interpolation/parim.h:557:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JPSOUTH       - An array index used to access the Southern
data/emoslib-4.5.9/interpolation/parim.h:559:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JPWEST        - An array index used to access the Western
data/emoslib-4.5.9/interpolation/parim.h:561:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JPEAST        - An array index used to access the Eastern
data/emoslib-4.5.9/interpolation/parim.h:564:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JPWESTEP      - An array index used to access the West-East
data/emoslib-4.5.9/interpolation/parim.h:566:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
C     JPNSSTEP      - An array index used to access the North-South
data/emoslib-4.5.9/interpolation/sharedgg.c:104: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( filename, fn );
data/emoslib-4.5.9/interpolation/sharedgg.c:106: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( filename, ypfn);
data/emoslib-4.5.9/interpolation/sharedlib.c:100:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:realpath(%s)",file);
data/emoslib-4.5.9/interpolation/sharedlib.c:117:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:ftok(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:125:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:semget(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:136:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:semop:lock(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:143:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
           sprintf(message,"WARNING: %d sharedmem:semop:lock(%s)",semcount,path);
data/emoslib-4.5.9/interpolation/sharedlib.c:181:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:open(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:188:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:stat64(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:203:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:shmget(%s) key = %d shmsize = %ld ",path, key, shmsize);
data/emoslib-4.5.9/interpolation/sharedlib.c:233:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"sharedmem:shmat(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:255:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(message,"ERR: sharedmem:check: invalid path [%s]\n",nfo->path);
data/emoslib-4.5.9/interpolation/sharedlib.c:272:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(message,"ERR: sharedmem:read(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:298:9:  [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(nfo->path,path);
data/emoslib-4.5.9/interpolation/sharedlib.c:328:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(message,"ERR: sharedmem:UNLOCK semop:unlock(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:334:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(message,"WARNING: %d sharedmem:UNLOCK semop:unlock(%s)",semcount,path);
data/emoslib-4.5.9/interpolation/sharedlib.c:370:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:realpath(%s)",file);
data/emoslib-4.5.9/interpolation/sharedlib.c:378:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:ftok(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:385:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:shmget(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:394:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:shmctl:IPC_RMID,(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:402:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:semget(%s)",path);
data/emoslib-4.5.9/interpolation/sharedlib.c:409:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"ERR: sharedmem:semctl:IPC_RMID,(%s)",path);
data/emoslib-4.5.9/interpolation/sharedll.c:110: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( filename, fn );
data/emoslib-4.5.9/interpolation/sharedll.c:112: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( filename, ypfn);
data/emoslib-4.5.9/pbio/extras.c:24: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(target,source);
data/emoslib-4.5.9/tools/gg_single.c:203:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                  fprintf(stdout, /*value==missingValue? "%f\t%f\tMISS\n":*/ "%f\t%f\t%f\n", lat, lon, value);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:58:27:  [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.
  directoryPath = (char*) getenv("LOCAL_DEFINITION_TEMPLATES");
data/emoslib-4.5.9/gribex/gdecode.c:293:20:  [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.
      debugLevel = getenv("GDECODE_DEBUG");
data/emoslib-4.5.9/gribex/local2c.c:67:14:  [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.
    pyfile = getenv("ECMWF_LOCAL_TABLE_PATH");
data/emoslib-4.5.9/gribex/sencode.c:51:20:  [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.
      debugLevel = getenv("GDECODE_DEBUG");
data/emoslib-4.5.9/interpolation/copy_spec_from_ksec.c:37:25:  [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.
    char *intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/describe_input_field.c:99:25:  [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.
    char *intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/describe_input_field.c:108:34:  [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.
    if(!intf2_debug) intf2_debug=getenv("EMOSLIB_DEBUG");
data/emoslib-4.5.9/interpolation/describe_input_field.c:306:12:  [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.
        if(getenv("INTF2_IGNORE_PARAM") != 0)
data/emoslib-4.5.9/interpolation/emos.c:90:25:  [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.
    char *intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/intf2.c:70:25:  [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.
    char *intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/intf2.c:71:25:  [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.
    char *intf2_write = getenv("INTF2_WRITE_TO_FILE");
data/emoslib-4.5.9/interpolation/intuvp2.c:81:19:  [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.
    intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/intuvp2.c:82:19:  [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.
    intf2_write = getenv("INTF2_WRITE_TO_FILE");
data/emoslib-4.5.9/interpolation/intuvs2.c:54:28:  [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.
    char *complex_switch = getenv("COMPLIANT_UV_SPECTRAL_COMPLEX");
data/emoslib-4.5.9/interpolation/intuvs2.c:64:25:  [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.
    char *intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/intvect2.c:80:19:  [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.
    intf2_debug = getenv("INTF2_DEBUG");
data/emoslib-4.5.9/interpolation/intvect2.c:81:19:  [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.
    intf2_write = getenv("INTF2_WRITE_TO_FILE");
data/emoslib-4.5.9/interpolation/jopnggsm.c:214:9:  [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.
  dbg = getenv("JDCNDBG");
data/emoslib-4.5.9/interpolation/jopnggsm.c:268: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.
  fn = getenv("PPDIR");
data/emoslib-4.5.9/interpolation/jopnggsm.c:298:10:  [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.
    fn = getenv( "PPDIR" );
data/emoslib-4.5.9/interpolation/jopnggsm.c:412:20:  [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.
    char *p      = getenv("PPMAPADDR");
data/emoslib-4.5.9/interpolation/jopnllsm.c:236:9:  [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.
  dbg = getenv("JDCNDBG");
data/emoslib-4.5.9/interpolation/jopnllsm.c:290: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.
  fn = getenv("PPDIR");
data/emoslib-4.5.9/interpolation/jopnllsm.c:320:10:  [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.
    fn = getenv( "PPDIR" );
data/emoslib-4.5.9/interpolation/jopnllsm.c:434:20:  [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.
    char *p      = getenv("PPMAPADDR");
data/emoslib-4.5.9/interpolation/sharedgg.c:100: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.
  fn = getenv("PPDIR");
data/emoslib-4.5.9/interpolation/sharedlib.c:32:17:  [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.
    char* var = getenv("EMOSLIB_SHM_DEBUG");
data/emoslib-4.5.9/interpolation/sharedlib.c:99:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if(realpath(file,path) == 0) {
data/emoslib-4.5.9/interpolation/sharedlib.c:369:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if(realpath(file,path) == 0) {
data/emoslib-4.5.9/interpolation/sharedll.c:106: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.
  fn = getenv("PPDIR");
data/emoslib-4.5.9/pbio/PBGroutines.c:1868:20:  [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.
      debugLevel = getenv("PBG_DEBUG");
data/emoslib-4.5.9/pbio/extras.c:49:20:  [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.
    if((e = (char*)getenv(env_copy)))
data/emoslib-4.5.9/pbio/pbio.c:124:20:  [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.
      debugLevel = getenv("PBIO_DEBUG");
data/emoslib-4.5.9/pbio/pbio.c:312:17:  [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.
      envSize = getenv("PBIO_BUFSIZE");
data/emoslib-4.5.9/pbio/pbio.c:1010:20:  [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.
      debugLevel = getenv("PBIO_DEBUG");
data/emoslib-4.5.9/pbio/readprod.c:361:23:  [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.
      big_prod_flag = getenv("ECMWF_CODED_BIG_PRODUCT");
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:37:3:  [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(p,((char *)n+4),4);      /* EXPVER */
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:39:3:  [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(p,(char *)n,4);          /* EXPVER */
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:63:3:  [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(((char *)n+4),p,4);      /* EXPVER */
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:65:3:  [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((char *)n,p,4);          /* EXPVER */
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:2247:10:  [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.
unsigned char fourBlanks[5] = "    ";
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:3230:3:  [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(p,collectedLocalDefinitionBytes,totalBytes);
data/emoslib-4.5.9/gribex/ECMWFdefinitions.c:3288:3:  [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(collectedLocalDefinitionBytes,p,totalBytes);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:43:8:  [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.
static char fullFileName[256];
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:55:3:  [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((fileName+24),"%03d",centre);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:56:3:  [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((fileName+27),"_%03d",subcentre);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:57:3:  [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((fileName+31),"_%03d",number);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:62:7:  [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 temp[256] = TABLE_PATH;
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:63:7:  [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(temp,"/gribtemplates");
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:101:8:  [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((fileName+24),"%03d",subcentre);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:102:8:  [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((fileName+27),"_%03d",0);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:103:8:  [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((fileName+31),"_%03d",number);
data/emoslib-4.5.9/gribex/fortranInterface.c:164:14:  [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.
    unsigned char section1Length[3] = {'\0','\0','\0'};
data/emoslib-4.5.9/gribex/fortranInterface.c:170: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((psection1+8),section1Length,3);
data/emoslib-4.5.9/gribex/fortranInterface.c:204: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 value[9];
data/emoslib-4.5.9/gribex/fortranInterface.c:214: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(value,ksec1Value,4);
data/emoslib-4.5.9/gribex/fortranInterface.c:219: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(value,ksec1Value,8);
data/emoslib-4.5.9/gribex/fortranInterface.c:223:9:  [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(value,"%0x",*ksec1Value /*,8*/ );
data/emoslib-4.5.9/gribex/fortranInterface.c:248:9:  [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((printLine+37)," %9d",*ksec1Value);
data/emoslib-4.5.9/gribex/fortranInterface.c:273: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 printLine[LINELENGTH] = "                                        ";
data/emoslib-4.5.9/gribex/fortranInterface.c:283:13:  [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((fileName+5),"%1d",fileNumber);
data/emoslib-4.5.9/gribex/fortranInterface.c:285:13:  [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((fileName+5),"%2d",fileNumber);
data/emoslib-4.5.9/gribex/fortranInterface.c:286:15:  [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).
        out = fopen(fileName,"w");
data/emoslib-4.5.9/gribex/fortranInterface.c:360:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    padCount = atoi(a->count);
data/emoslib-4.5.9/gribex/gdecode.c:252:3:  [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((char *)&realNumber,(char *)&realNumberBits,4);
data/emoslib-4.5.9/gribex/gdecode.c:305:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        debugSet = DEBUGOFF + atol( debugLevel );
data/emoslib-4.5.9/gribex/gdecodeStruct.h:15:10:  [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.
unsigned char GRIB[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:16:10:  [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.
unsigned char totalGRIBlength[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:17:10:  [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.
unsigned char editionNumber[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:21:10:  [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.
unsigned char number[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:22:10:  [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.
unsigned char total[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:23:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:27:10:  [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.
unsigned char number[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:28:10:  [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.
unsigned char total[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:29:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:30:10:  [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.
unsigned char method[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:31:10:  [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.
unsigned char startTimestep[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:32:10:  [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.
unsigned char endTimestep[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:33:10:  [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.
unsigned char domainNorthLatitude[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:34:10:  [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.
unsigned char domainWestLongitude[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:35:10:  [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.
unsigned char domainSouthLatitude[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:36:10:  [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.
unsigned char domainEastLongitude[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:37:10:  [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.
unsigned char operationalForecastCluster[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:38:10:  [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.
unsigned char controlForecastCluster[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:39:10:  [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.
unsigned char numberInCluster[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:40:10:  [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.
unsigned char forecastNumberList[256];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:44:10:  [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.
unsigned char band[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:45:10:  [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.
unsigned char functionCode[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:46:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:50:10:  [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.
unsigned char number[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:51:10:  [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.
unsigned char total[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:52:10:  [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.
unsigned char unitsDecimalScaleFactor[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:53:10:  [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.
unsigned char thresholdIndicator[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:54:10:  [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.
unsigned char lowerThreshold[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:55:10:  [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.
unsigned char upperThreshold[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:56:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:60:10:  [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.
unsigned char date[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:61:10:  [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.
unsigned char satelliteNumber[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:65:10:  [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.
unsigned char zero[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:66:10:  [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.
unsigned char SSTFieldDate[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:67:10:  [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.
unsigned char typeOfSSTField[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:68:10:  [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.
unsigned char countOfICEFields[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:69:10:  [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.
unsigned char lowerThreshold[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:70:10:  [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.
unsigned char upperThreshold[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:75:10:  [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.
unsigned char number[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:76:10:  [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.
unsigned char totalNumberOfDiagnostics[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:77:10:  [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.
unsigned char domain[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:78:10:  [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.
unsigned char diagnosticNumber[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:79:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:83:10:  [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.
unsigned char interval[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:84:10:  [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.
unsigned char unsignedIntegers[12];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:88:10:  [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.
unsigned char number[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:89:10:  [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.
unsigned char numberOfIterations[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:90:10:  [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.
unsigned char numberOfSingularVectorsComputed[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:91:10:  [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.
unsigned char initialNorm[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:92:10:  [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.
unsigned char finalNorm[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:93:10:  [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.
unsigned char multiplicationFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:94:10:  [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.
unsigned char northWestLatitude[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:95:10:  [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.
unsigned char northWestLongitude[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:96:10:  [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.
unsigned char southEastLatitude[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:97:10:  [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.
unsigned char southEastLongitude[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:98:10:  [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.
unsigned char accuracy[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:99:10:  [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.
unsigned char numberOfSingularVectorsEvolved[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:100:10:  [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.
unsigned char ritzNumber1[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:101:10:  [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.
unsigned char ritzNumber2[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:102:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:106:10:  [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.
unsigned char number[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:107:10:  [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.
unsigned char total[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:108:10:  [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.
unsigned char centralClusterDefinition[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:109:10:  [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.
unsigned char parameter[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:110:10:  [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.
unsigned char levelType[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:111:10:  [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.
unsigned char domainNorth[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:112:10:  [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.
unsigned char domainWest[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:113:10:  [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.
unsigned char domainSouth[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:114:10:  [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.
unsigned char domainEast[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:115:10:  [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.
unsigned char operationalForcastTubeNumber[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:116:10:  [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.
unsigned char controlForcastTubeNumber[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:117:10:  [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.
unsigned char level[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:118:10:  [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.
unsigned char referenceStep[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:119:10:  [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.
unsigned char radiusOfCentralCluster[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:120:10:  [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.
unsigned char ensembleStandardDeviation[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:121:10:  [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.
unsigned char distanceOfExtremeToMean[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:122:10:  [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.
unsigned char numberOfForecastsInTube[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:123:10:  [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.
unsigned char ensembleForecastList[255];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:127:10:  [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.
unsigned char analysisClass[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:128:10:  [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.
unsigned char analysisType[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:129:10:  [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.
unsigned char analysisStream[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:130:10:  [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.
unsigned char analysisExpver[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:131:10:  [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.
unsigned char analysisYear[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:132:10:  [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.
unsigned char analysisMonth[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:133:10:  [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.
unsigned char analysisDay[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:134:10:  [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.
unsigned char analysisHour[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:135:10:  [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.
unsigned char analysisMinute[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:136:10:  [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.
unsigned char analysisCentury[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:137:10:  [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.
unsigned char analysisOriginatingCentre[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:138:10:  [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.
unsigned char analysisSubCentre[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:139:10:  [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.
unsigned char spare[7];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:143:10:  [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.
unsigned char iteration[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:144:10:  [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.
unsigned char total[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:145:10:  [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.
unsigned char spare[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:163:10:  [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.
unsigned char definition[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:164:10:  [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.
unsigned char ecmwfClass[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:165:10:  [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.
unsigned char type[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:166:10:  [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.
unsigned char stream[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:167:10:  [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.
unsigned char experimentVersionNumber[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:176:10:  [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.
unsigned char sectionLength[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:177:10:  [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.
unsigned char tableVersionNumber[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:178:10:  [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.
unsigned char originatingCentre[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:179:10:  [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.
unsigned char generatingProcessId[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:180:10:  [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.
unsigned char gridDefinition[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:181:10:  [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.
unsigned char section2and3PresentFlag[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:182:10:  [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.
unsigned char parameter[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:183:10:  [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.
unsigned char typeOfLevel[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:184:10:  [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.
unsigned char level1[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:185:10:  [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.
unsigned char level2[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:186:10:  [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.
unsigned char year[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:187:10:  [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.
unsigned char month[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:188:10:  [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.
unsigned char day[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:189:10:  [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.
unsigned char hour[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:190:10:  [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.
unsigned char minute[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:191:10:  [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.
unsigned char unitOfTimeRange[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:192:10:  [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.
unsigned char P1[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:193:10:  [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.
unsigned char P2[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:194:10:  [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.
unsigned char timeRangeIndicator[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:195:10:  [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.
unsigned char numberInAverage[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:196:10:  [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.
unsigned char numberMissing[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:197:10:  [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.
unsigned char century[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:198:10:  [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.
unsigned char subCentreId[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:199:10:  [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.
unsigned char unitsDecimalScaleFactor[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:200:10:  [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.
unsigned char reserved[12];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:205:10:  [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.
unsigned char numberOfPointsAlongParallel[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:206:10:  [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.
unsigned char numberOfPointsAlongMeridian[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:207:10:  [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.
unsigned char latitudeOfFirstPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:208:10:  [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.
unsigned char longitudeOfFirstPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:209:10:  [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.
unsigned char resolutionAndComponentsFlag[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:210:10:  [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.
unsigned char latitudeOfLastPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:211:10:  [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.
unsigned char longitudeOfLastPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:212:10:  [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.
unsigned char iDirectionIncrement[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:213:10:  [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.
unsigned char jDirectionIncrement[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:214:10:  [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.
unsigned char scanningMode[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:215:10:  [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.
unsigned char setToZero[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:216:10:  [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.
unsigned char latitudeOfSouthPole[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:217:10:  [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.
unsigned char longitudeOfSouthPole[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:218:10:  [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.
unsigned char angleOfRotationOrStretchingFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:219:10:  [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.
unsigned char latitudeOfPoleOfStretching[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:220:10:  [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.
unsigned char longitudeOfPoleOfStretching[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:221:10:  [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.
unsigned char stretchingFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:225:10:  [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.
unsigned char numberOfPointsAlongParallel[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:226:10:  [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.
unsigned char numberOfPointsAlongMeridian[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:227:10:  [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.
unsigned char latitudeOfFirstPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:228:10:  [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.
unsigned char longitudeOfFirstPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:229:10:  [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.
unsigned char resolutionAndComponentsFlag[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:230:10:  [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.
unsigned char latitudeOfLastPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:231:10:  [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.
unsigned char longitudeOfLastPoint[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:232:10:  [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.
unsigned char iDirectionIncrement[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:233:10:  [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.
unsigned char numberOfParallelsBetweenPoleAndEquator[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:234:10:  [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.
unsigned char scanningMode[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:235:10:  [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.
unsigned char setToZero[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:236:10:  [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.
unsigned char latitudeOfSouthPole[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:237:10:  [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.
unsigned char longitudeOfSouthPole[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:238:10:  [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.
unsigned char angleOfRotationOrStretchingFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:239:10:  [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.
unsigned char latitudeOfPoleOfStretching[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:240:10:  [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.
unsigned char longitudeOfPoleOfStretching[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:241:10:  [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.
unsigned char stretchingFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:246:10:  [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.
unsigned char J[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:247:10:  [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.
unsigned char K[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:248:10:  [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.
unsigned char M[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:249:10:  [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.
unsigned char representationType[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:250:10:  [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.
unsigned char representationMode[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:251:10:  [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.
unsigned char setToZero[18];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:252:10:  [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.
unsigned char latitudeOfSouthPole[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:253:10:  [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.
unsigned char longitudeOfSouthPole[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:254:10:  [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.
unsigned char angleOfRotationOrStretchingFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:255:10:  [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.
unsigned char latitudeOfPoleOfStretching[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:256:10:  [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.
unsigned char longitudeOfPoleOfStretching[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:257:10:  [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.
unsigned char stretchingFactor[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:267:10:  [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.
unsigned char sectionLength[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:268:10:  [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.
unsigned char NV[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:269:10:  [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.
unsigned char PV_PL[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:270:10:  [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.
unsigned char dataRepresentationType[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:275:10:  [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.
unsigned char sectionLength[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:276:10:  [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.
unsigned char numberOfUnusedBits[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:277:10:  [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.
unsigned char tableReference[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:286:10:  [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.
unsigned char n1[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:287:10:  [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.
unsigned char extendedFlags[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:288:10:  [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.
unsigned char n2[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:289:10:  [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.
unsigned char p1[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:290:10:  [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.
unsigned char p2[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:291:10:  [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.
unsigned char reserved[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:296:10:  [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.
unsigned char realPartOf0_0Coefficient[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:301:10:  [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.
unsigned char N[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:302:10:  [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.
unsigned char IP[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:303:10:  [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.
unsigned char J[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:304:10:  [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.
unsigned char K[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:305:10:  [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.
unsigned char M[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:317:10:  [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.
unsigned char sectionLength[3];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:318:10:  [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.
unsigned char flag[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:319:10:  [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.
unsigned char scaleFactor[2];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:320:10:  [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.
unsigned char referenceValue[4];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:321:10:  [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.
unsigned char numberOfBitsPerValue[1];
data/emoslib-4.5.9/gribex/gdecodeStruct.h:326:10:  [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.
unsigned char end7777[4];
data/emoslib-4.5.9/gribex/getValues.c:40:3:  [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(copy,original,length);
data/emoslib-4.5.9/gribex/getValues.c:55:10:  [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.
unsigned char Request[80];
data/emoslib-4.5.9/gribex/getValues.c:80:1:  [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 Request[80];
data/emoslib-4.5.9/gribex/getsetValues.c:26:3:  [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(copy,original,length);
data/emoslib-4.5.9/gribex/getsetValues.c:41:10:  [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.
unsigned char Request[80];
data/emoslib-4.5.9/gribex/getsetValues.c:66:10:  [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.
unsigned char Request[80];
data/emoslib-4.5.9/gribex/getsetValues.c:410:10:  [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.
unsigned char Request[80];
data/emoslib-4.5.9/gribex/getsetValues.c:438:10:  [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.
unsigned char Request[80];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:105:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *numberOfValues = atol(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:108:35:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    octetValue = (b->startOctets)+atol(a->octet)-OCTETSTART;
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:113:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ksec1Value = (b->startKsec1)+atol(a->ksec1)-KSEC1START;
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:125:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t multiple = atol(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:126:25:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t startOctet = atol(a->octet);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:142:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t multiple = atol(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:143:25:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t startOctet = atol(a->octet);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:161:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t multiple = atol(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:162:24:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t startByte = atol(a->octet);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:179:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t multiple = atol(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:180:24:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t startByte = atol(a->octet);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:205:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    count = atoi(a->count) - (int)((b->packed)-(b->startOctets)+OCTETSTART-1);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:259:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    numberOfBytes = atoi(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:265:3:  [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((b->packed),(b->values),numberOfBytes);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:283:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    numberOfBytes = atoi(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:289:3:  [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((b->values),(b->packed),numberOfBytes);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:313:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *flag = atol(a->count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:581:3:  [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((b->packed),(b->values),4);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:596:3:  [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((b->packed),(b->values),8);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:617:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t zero = 0, loop, numberOfZeroes = atoi((a->count));
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:841:3:  [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((b->values),(b->packed),4);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:860:3:  [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((b->values),(b->packed),8);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:881:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t loop, numberOfZeroes = atoi((a->count)), zero = 0;
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:885:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      (b->packed) =  (b->startOctets)+atoi(a->octet)-OCTETSTART;
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:892:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      (b->values) = (b->startKsec1)+atoi(a->ksec1)-KSEC1START;
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1172:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t val2 = atol(a->ksec1);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1182:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
grib_int_t val2 = atol(a->ksec1);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1305:1:  [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 line[1024];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1338:12:  [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).
    file = fopen(fullPathName,"r");
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1347: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 description[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1348: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 octet[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1349: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 code[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1350: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 ksec1[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1351: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 count[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1363:11:  [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(line,definition,count);
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1495:1:  [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 line[1024];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1527:12:  [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).
    file = fopen(fullPathName,"r");
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1536: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 description[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1537: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 octet[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1538: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 code[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1539: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 ksec1[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1540: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 count[40];
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1552:11:  [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(line,definition,count);
data/emoslib-4.5.9/gribex/local2c.c:53:1:  [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 yfile[256], * pyfile;
data/emoslib-4.5.9/gribex/local2c.c:55:1:  [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[BUFFLEN];
data/emoslib-4.5.9/gribex/local2c.c:58:1:  [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 NNNNNN[7];
data/emoslib-4.5.9/gribex/local2c.c:60: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( hfirst,  "NONE");
data/emoslib-4.5.9/gribex/local2c.c:61: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( hsecond, "Undefined parameter");
data/emoslib-4.5.9/gribex/local2c.c:62: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( hthird , "Undefined parameter");
data/emoslib-4.5.9/gribex/local2c.c:63: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( hfourth, "Undefined parameter");
data/emoslib-4.5.9/gribex/local2c.c:72:12:  [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(yfile,"/gribtables");
data/emoslib-4.5.9/gribex/local2c.c:79: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(NNNNNN,"%6.6d",nnnnnn);
data/emoslib-4.5.9/gribex/local2c.c:80: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((yfile+28),NNNNNN,6);
data/emoslib-4.5.9/gribex/local2c.c:81: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((yfile+strlen(yfile)),"%3.3d",ktable);
data/emoslib-4.5.9/gribex/local2c.c:85:10:  [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).
    in = fopen(yfile, "r");
data/emoslib-4.5.9/gribex/sencode.c:63:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        debugSet = DEBUGOFF + atol( debugLevel );
data/emoslib-4.5.9/gribex/sencode.c:103:3:  [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((*((*newGrib)->g5)).end7777,"7777",4);
data/emoslib-4.5.9/gribex/sencode.c:146:3:  [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((newG->g0),(oldG->g0),sizeof(gribSection0));
data/emoslib-4.5.9/gribex/sencode.c:152:3:  [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((newG->g1),(oldG->g1),lengthOfSectionToCopy);
data/emoslib-4.5.9/gribex/sencode.c:158:3:  [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((newG->g2),(oldG->g2),lengthOfSectionToCopy);
data/emoslib-4.5.9/gribex/sencode.c:182:3:  [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((newG->g4),(oldG->g4),lengthOfSectionToCopy);
data/emoslib-4.5.9/gribex/sencode.c:187:3:  [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((*(newG->g5)).end7777,"7777",4);
data/emoslib-4.5.9/gribex/sencode.c:228: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,(g->g0),sizeof(gribSection0));
data/emoslib-4.5.9/gribex/sencode.c:233: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+next),(g->g1),lengthOfSectionToMove);
data/emoslib-4.5.9/gribex/sencode.c:237: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+next),(g->g2),lengthOfSectionToMove);
data/emoslib-4.5.9/gribex/sencode.c:242:7:  [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+next),(g->g3),lengthOfSectionToMove);
data/emoslib-4.5.9/gribex/sencode.c:247: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+next),(g->g4),lengthOfSectionToMove);
data/emoslib-4.5.9/gribex/sencode.c:251: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+next),"7777",lengthOfSectionToMove);
data/emoslib-4.5.9/gribex/sencode.c:984:3:  [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(newG1,oldG1,oldCopyLength);
data/emoslib-4.5.9/gribex/sencode.c:1570:10:  [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.
unsigned char htype[2] = "R";
data/emoslib-4.5.9/gribex/sencode.c:1652:3:  [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(newSection2,(g->g2),sizeof(gribSection2));
data/emoslib-4.5.9/gribex/sencode.c:2484: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(newG2,(g->g2),section2Size);
data/emoslib-4.5.9/gribex/swap4.c:22:1:  [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 copy[4];
data/emoslib-4.5.9/gribex/swap4.c:24:3:  [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(copy,version,4);
data/emoslib-4.5.9/gribex/valpina.c:111:14:  [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.
static const char lookup[256] = {0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,
data/emoslib-4.5.9/gribex/valpina.c:130:23:  [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.
static const unsigned char bottomMask[8] =
data/emoslib-4.5.9/gribex/valpina.c:132:23:  [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.
static const unsigned char topMask[8]    =
data/emoslib-4.5.9/interpolation/describe_input_field.c:85: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 grid_type[80];
data/emoslib-4.5.9/interpolation/describe_input_field.c:101: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 typeOfLevel[50]={0,};
data/emoslib-4.5.9/interpolation/describe_input_field.c:449: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 gridName[6] = {0,};
data/emoslib-4.5.9/interpolation/emos.c:82: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  in_grib[1];
data/emoslib-4.5.9/interpolation/emos.c:83: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  out_grib[500000];
data/emoslib-4.5.9/interpolation/intf2.c:309: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(grib_out,temp,outlen_grib_message);
data/emoslib-4.5.9/interpolation/intuvp2.c:404:13:  [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(vort_grib_out,temp1,outlen);
data/emoslib-4.5.9/interpolation/intuvp2.c:426:13:  [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(div_grib_out,temp2,outlen);
data/emoslib-4.5.9/interpolation/intuvs2.c:387:13:  [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(vort_grib_out,temp1,outlen);
data/emoslib-4.5.9/interpolation/intuvs2.c:471:13:  [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(div_grib_out,temp2,*length_out);
data/emoslib-4.5.9/interpolation/intvect2.c:382:13:  [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(u_grib_out,temp1,outlen);
data/emoslib-4.5.9/interpolation/intvect2.c:393:13:  [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(v_grib_out,temp2,outlen);
data/emoslib-4.5.9/interpolation/jopnggsm.c:176:1:  [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 filedum[128], filename[128];
data/emoslib-4.5.9/interpolation/jopnggsm.c:178:1:  [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 ypfn[21] =        "CF_xxxx_nnnn";
data/emoslib-4.5.9/interpolation/jopnggsm.c:180:1:  [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 ypfn[21] =        "cf_xxxx_nnnn";
data/emoslib-4.5.9/interpolation/jopnggsm.c:182:8:  [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.
static char yold[21] = "xxxxxxxxxxxxxxxxxxxx";
data/emoslib-4.5.9/interpolation/jopnggsm.c:183:8:  [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.
static char yarray[12][21];
data/emoslib-4.5.9/interpolation/jopnggsm.c:211:3:  [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( ypfn+3,  "%04d", ktrunc);
data/emoslib-4.5.9/interpolation/jopnggsm.c:212:3:  [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( ypfn+7, "_%04d", *knum);
data/emoslib-4.5.9/interpolation/jopnggsm.c:283: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( filename, "./" );
data/emoslib-4.5.9/interpolation/jopnggsm.c:304:7:  [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( filename, "./" );
data/emoslib-4.5.9/interpolation/jopnggsm.c:317: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(&filedum[strlen(filename)],"_%06d",process_id);
data/emoslib-4.5.9/interpolation/jopnggsm.c:323:7:  [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( filename, "./" );
data/emoslib-4.5.9/interpolation/jopnggsm.c:326:7:  [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(&filedum[strlen(filename)],"_%06d",process_id);
data/emoslib-4.5.9/interpolation/jopnggsm.c:413:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    caddr_t addr = (caddr_t) (p?atol(p):0);
data/emoslib-4.5.9/interpolation/jopnllsm.c:188:1:  [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 filedum[128], filename[128];
data/emoslib-4.5.9/interpolation/jopnllsm.c:190:1:  [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 ypfn[21] =        "CF_Txxxx_Raabbbb";
data/emoslib-4.5.9/interpolation/jopnllsm.c:192:1:  [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 ypfn[21] =        "cf_txxxx_raabbbb";
data/emoslib-4.5.9/interpolation/jopnllsm.c:194:8:  [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.
static char yold[21] = "xxxxxxxxxxxxxxxxxxxx";
data/emoslib-4.5.9/interpolation/jopnllsm.c:195:8:  [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.
static char yarray[12][21];
data/emoslib-4.5.9/interpolation/jopnllsm.c:229:3:  [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( ypfn+4, "%04d", ktrunc);
data/emoslib-4.5.9/interpolation/jopnllsm.c:231:3:  [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( ypfn+8, "_R%07d", kbuild);
data/emoslib-4.5.9/interpolation/jopnllsm.c:233:3:  [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( ypfn+8, "_r%07d", kbuild);
data/emoslib-4.5.9/interpolation/jopnllsm.c:305: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( filename, "./" );
data/emoslib-4.5.9/interpolation/jopnllsm.c:326:7:  [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( filename, "./" );
data/emoslib-4.5.9/interpolation/jopnllsm.c:339: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(&filedum[strlen(filename)],"_%07d",process_id);
data/emoslib-4.5.9/interpolation/jopnllsm.c:345:7:  [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( filename, "./" );
data/emoslib-4.5.9/interpolation/jopnllsm.c:348:7:  [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(&filedum[strlen(filename)],"_%07d",process_id);
data/emoslib-4.5.9/interpolation/jopnllsm.c:435:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    caddr_t addr = (caddr_t) (p?atol(p):0);
data/emoslib-4.5.9/interpolation/makemap.c:51:1:  [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[BUFFLEN];
data/emoslib-4.5.9/interpolation/makemap.c:72: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).
  in = fopen(fileName,"r");
data/emoslib-4.5.9/interpolation/makemap.c:246:1:  [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 number[20];
data/emoslib-4.5.9/interpolation/makemap.c:253:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi(number);
data/emoslib-4.5.9/interpolation/makemap.c:259:1:  [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 delimiter[5] = {'-','/',',','\n',':'};
data/emoslib-4.5.9/interpolation/makemap.c:279:1:  [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 mask[8] = {0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};
data/emoslib-4.5.9/interpolation/sharedgg.c:71:1:  [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 filedum[128], filename[128];
data/emoslib-4.5.9/interpolation/sharedgg.c:73:1:  [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 ypfn[21] =        "CF_xxxx_nnnn";
data/emoslib-4.5.9/interpolation/sharedgg.c:75:1:  [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 ypfn[21] =        "cf_xxxx_nnnn";
data/emoslib-4.5.9/interpolation/sharedgg.c:77:8:  [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.
static char yold[21] = "xxxxxxxxxxxxxxxxxxxx";
data/emoslib-4.5.9/interpolation/sharedgg.c:94:3:  [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( ypfn+3, "%04d", ktrunc);
data/emoslib-4.5.9/interpolation/sharedgg.c:95:3:  [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( ypfn+7, "_%04d", *knum);
data/emoslib-4.5.9/interpolation/sharedlib.c:55: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 path[INFO_PATH];
data/emoslib-4.5.9/interpolation/sharedlib.c:61: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 message[1024];
data/emoslib-4.5.9/interpolation/sharedlib.c:62: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 path[1024];
data/emoslib-4.5.9/interpolation/sharedlib.c:175:14:  [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).
    if((fd = open(path,O_RDONLY | O_LARGEFILE))  < 0)
data/emoslib-4.5.9/interpolation/sharedlib.c:177:14:  [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).
    if((fd = open(path,O_RDONLY))  < 0)
data/emoslib-4.5.9/interpolation/sharedlib.c:248:13:  [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(message,"ERR: sharedmem:check: bad magic %d\n",nfo->magic);
data/emoslib-4.5.9/interpolation/sharedlib.c:356: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 message[1024];
data/emoslib-4.5.9/interpolation/sharedlib.c:357: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 path[1024];
data/emoslib-4.5.9/interpolation/sharedll.c:72:1:  [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 filedum[128], filename[128];
data/emoslib-4.5.9/interpolation/sharedll.c:74:1:  [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 ypfn[21] =        "CF_Txxxx_Raabbbb";
data/emoslib-4.5.9/interpolation/sharedll.c:76:1:  [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 ypfn[21] =        "cf_txxxx_raabbbb";
data/emoslib-4.5.9/interpolation/sharedll.c:78:8:  [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.
static char yold[21] = "xxxxxxxxxxxxxxxxxxxx";
data/emoslib-4.5.9/interpolation/sharedll.c:95:3:  [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( ypfn+4, "%04d", ktrunc);
data/emoslib-4.5.9/interpolation/sharedll.c:98:3:  [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( ypfn+8, "_R%07d", kbuild);
data/emoslib-4.5.9/interpolation/sharedll.c:100:3:  [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( ypfn+8, "_r%07d", kbuild);
data/emoslib-4.5.9/pbio/PBGroutines.c:131:10:  [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.
unsigned char header[HEADLEN];
data/emoslib-4.5.9/pbio/PBGroutines.c:1880:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        debugSet = DEBUGOFF + atol( debugLevel );
data/emoslib-4.5.9/pbio/PBGroutines.c:1909:1:  [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 mode[2] = " ";
data/emoslib-4.5.9/pbio/PBGroutines.c:1921: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).
  in = fopen(pfile,mode);
data/emoslib-4.5.9/pbio/PBGroutines.c:2170:3:  [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(*pfile, filename, (size_t) filename_len);
data/emoslib-4.5.9/pbio/PBGroutines.c:2451:10:  [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.
unsigned char size[3];
data/emoslib-4.5.9/pbio/PBGroutines.c:2549: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(where, (buffer+(*num_bytes_read)), number);
data/emoslib-4.5.9/pbio/crexrd.c:41:1:  [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 plplcrcrlf7777[10] = {0,0,0,0,0,0,0,0,0,0};
data/emoslib-4.5.9/pbio/crexrd.c:42:1:  [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 PlPlCrCrLf7777[10] = {0x2b,0x2b,0x0d,0x0d,0x0a,0x37,0x37,0x37,0x37,0x00};
data/emoslib-4.5.9/pbio/gbyte_alpha.c:166:12:  [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.
  unsigned char setBit0[8] = {0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
data/emoslib-4.5.9/pbio/gbyte_alpha.c:167:12:  [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.
  unsigned char setBit1[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
data/emoslib-4.5.9/pbio/gbyte_le.c:325:12:  [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.
  unsigned char setBit0[8] = {0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
data/emoslib-4.5.9/pbio/gbyte_le.c:326:12:  [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.
  unsigned char setBit1[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
data/emoslib-4.5.9/pbio/lwsize.c:36:1:  [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 statbuff[BUFFLEN];
data/emoslib-4.5.9/pbio/newpbio.c:68:1:  [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  flags[4];
data/emoslib-4.5.9/pbio/newpbio.c:71:1:  [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 namebuff[NAMEBUFFLEN], modebuff[MODEBUFFLEN];
data/emoslib-4.5.9/pbio/newpbio.c:156:9:  [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(flags, "r+w" );
data/emoslib-4.5.9/pbio/newpbio.c:158:13:  [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).
    *unit = fopen(fname, flags );
data/emoslib-4.5.9/pbio/newpbio.c:392:4:  [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 tmp[20];
data/emoslib-4.5.9/pbio/newpbio.c:395:4:  [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(tmp,"%d",onum);
data/emoslib-4.5.9/pbio/newpbio.c:421:1:  [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 namebuff[NAMEBUFFLEN], modebuff[MODEBUFFLEN];
data/emoslib-4.5.9/pbio/newpbio.c:505:13:  [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).
    *unit = open(fname, oflag, oct_bin3(filemode));
data/emoslib-4.5.9/pbio/pbio.c:112:1:  [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  flags[4];
data/emoslib-4.5.9/pbio/pbio.c:115:1:  [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 namebuff[NAMEBUFFLEN+1], modebuff[MODEBUFFLEN+1];
data/emoslib-4.5.9/pbio/pbio.c:136:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        debugSet = DEBUGOFF + atol( debugLevel );
data/emoslib-4.5.9/pbio/pbio.c:205:19:  [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(flags, "r+");
data/emoslib-4.5.9/pbio/pbio.c:292:18:  [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).
    fptable[n] = fopen(namebuff, flags );
data/emoslib-4.5.9/pbio/pbio.c:324:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        size = atol( envSize );
data/emoslib-4.5.9/pbio/pbio.c:967:4:  [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 tmp[20];
data/emoslib-4.5.9/pbio/pbio.c:970:4:  [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(tmp,"%d",onum);
data/emoslib-4.5.9/pbio/pbio.c:998:1:  [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  flags[4];
data/emoslib-4.5.9/pbio/pbio.c:1001:1:  [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 namebuff[NAMEBUFFLEN], modebuff[MODEBUFFLEN];
data/emoslib-4.5.9/pbio/pbio.c:1022:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        debugSet = DEBUGOFF + atol( debugLevel );
data/emoslib-4.5.9/pbio/pbio.c:1104:13:  [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).
    *unit = open(namebuff, oflag, oct_bin3(filemode));
data/emoslib-4.5.9/pbio/pbio.c:1375:1:  [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 statbuff[BUFFLEN];
data/emoslib-4.5.9/pbio/pbio.c:1466:1:  [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 plplcrcrlf7777[10] = {0,0,0,0,0,0,0,0,0,0};
data/emoslib-4.5.9/pbio/pbio.c:1467:1:  [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 PlPlCrCrLf7777[10] = {0x2b,0x2b,0x0d,0x0d,0x0a,0x37,0x37,0x37,0x37,0x00};
data/emoslib-4.5.9/pbio/pbio_alpha.c:59:1:  [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 flags[4];
data/emoslib-4.5.9/pbio/pbio_alpha.c:60:1:  [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 namebuff[NAMEBUFFLEN], modebuff[MODEBUFFLEN];
data/emoslib-4.5.9/pbio/pbio_alpha.c:132:55:  [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.
    if( !strcmp(flags,"wr") || !strcmp(flags, "rw") ) strcpy(flags, "r+w" );
data/emoslib-4.5.9/pbio/pbio_alpha.c:176:18:  [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).
    fptable[n] = fopen(fname, flags );
data/emoslib-4.5.9/pbio/pbio_alpha.c:465:1:  [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 statbuff[BUFFLEN];
data/emoslib-4.5.9/pbio/pbio_alpha.c:552:4:  [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 tmp[20];
data/emoslib-4.5.9/pbio/pbio_alpha.c:555:4:  [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(tmp,"%d",onum);
data/emoslib-4.5.9/pbio/pbio_alpha.c:581:1:  [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 namebuff[NAMEBUFFLEN], modebuff[MODEBUFFLEN];
data/emoslib-4.5.9/pbio/pbio_alpha.c:665:13:  [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).
    *unit = open(fname, oflag, oct_bin3(filemode));
data/emoslib-4.5.9/pbio/pbsize.c:40:1:  [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 statbuff[BUFFLEN];
data/emoslib-4.5.9/pbio/readprod.c:206: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 grp_7777[5];
data/emoslib-4.5.9/pbio/readprod.c:242:7:  [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 grp_7777[5];
data/emoslib-4.5.9/pbio/readprod.c:659:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case BUFR: memcpy(hold,"BUFR",4);
data/emoslib-4.5.9/pbio/readprod.c:662:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case BUDG: memcpy(hold,"BUDG",4);
data/emoslib-4.5.9/pbio/readprod.c:665:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case GRIB: memcpy(hold,"GRIB",4);
data/emoslib-4.5.9/pbio/readprod.c:668:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case TIDE: memcpy(hold,"TIDE",4);
data/emoslib-4.5.9/pbio/readprod.c:671:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case DIAG: memcpy(hold,"DIAG",4);
data/emoslib-4.5.9/pbio/readprod.c:674:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case CREX: memcpy(hold,"CREX",4);
data/emoslib-4.5.9/pbio/readprod.c:701:1:  [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 size[3];
data/emoslib-4.5.9/pbio/readprod.c:793: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(where, (buffer+(*num_bytes_read)), number);
data/emoslib-4.5.9/pbio/readprod.c:808:1:  [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[BUFFLEN];
data/emoslib-4.5.9/pbio/readprod.c:811:1:  [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 plplcrcrlf7777[10] = {0,0,0,0,0,0,0,0,0,0};
data/emoslib-4.5.9/pbio/readprod.c:812:1:  [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 PlPlCrCrLf7777[10] = {0x2b,0x2b,0x0d,0x0d,0x0a,0x37,0x37,0x37,0x37,0x00};
data/emoslib-4.5.9/pbio/readprod_alpha.c:147: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 grp_7777[5];
data/emoslib-4.5.9/pbio/readprod_alpha.c:171:7:  [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 grp_7777[5];
data/emoslib-4.5.9/pbio/readprod_alpha.c:506:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case BUFR: memcpy(hold,"BUFR",4);
data/emoslib-4.5.9/pbio/readprod_alpha.c:509:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case BUDG: memcpy(hold,"BUDG",4);
data/emoslib-4.5.9/pbio/readprod_alpha.c:512:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case GRIB: memcpy(hold,"GRIB",4);
data/emoslib-4.5.9/pbio/readprod_alpha.c:515:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case TIDE: memcpy(hold,"TIDE",4);
data/emoslib-4.5.9/pbio/readprod_alpha.c:518:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     case DIAG: memcpy(hold,"DIAG",4);
data/emoslib-4.5.9/pbio/recheckLength.c:49:1:  [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 size[3];
data/emoslib-4.5.9/pbio/recheckLength.c:52:1:  [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 grp_7777[5];
data/emoslib-4.5.9/pbio/recheckLength.c:146: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(where, (buffer+(*num_bytes_read)), number);
data/emoslib-4.5.9/sandbox/emos_tool.c:417: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(outgrib, message, size);
data/emoslib-4.5.9/sandbox/emos_tool.c:586: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(u_outgrib, u_message, u_size);
data/emoslib-4.5.9/sandbox/emos_tool.c:600: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(v_outgrib, v_message, v_size);
data/emoslib-4.5.9/sandbox/emos_tool.c:660:11:  [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.
    const char *paths[2];
data/emoslib-4.5.9/sandbox/emos_tool.c:783:44:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            o->ints[k++] = atol(q);
data/emoslib-4.5.9/sandbox/emos_tool.c:792:36:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    o->ints[k++] = atol(q);
data/emoslib-4.5.9/sandbox/emos_tool.c:838:9:  [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).
    f = fopen(paths[0], "r");
data/emoslib-4.5.9/sandbox/emos_tool.c:844:9:  [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).
    g = fopen(paths[1], "w");
data/emoslib-4.5.9/tools/gg_gridname.c:107:23:  [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).
      if ((NULL==(f = fopen(a,"r")))) {
data/emoslib-4.5.9/tools/gg_gridname.c:118:11:  [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
data/emoslib-4.5.9/tools/gg_single.c:44:3:  [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 line[100];  /* text line buffer */
data/emoslib-4.5.9/tools/gg_single.c:68:15:  [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).
          f = fopen(&a[7],"r");
data/emoslib-4.5.9/tools/gg_single.c:123:27:  [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).
          if ((NULL==(g = fopen(a,"r")))) {
data/emoslib-4.5.9/tools/gg_single.c:133:15:  [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 gridType[80] = "";
data/emoslib-4.5.9/cmake/contrib/GreatCMakeCookOff/cpp11/__func__-N2340.cpp:6:10:  [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(std::strlen(__func__) <= 0) { return 1; }
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:80:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fullFileName,startString,n);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:88: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).
    n = strlen(directoryPath) - (int) (startString - directoryPath);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:90: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).
    n = strlen(directoryPath);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:92:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(fullFileName,startString,n);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:104:12:  [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).
       n = strlen(directoryPath);
data/emoslib-4.5.9/gribex/findLocalDefinitionFile.c:105:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(fullFileName,directoryPath,n);
data/emoslib-4.5.9/gribex/fortranInterface.c:209:19:  [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).
    printLength = strlen(contents);
data/emoslib-4.5.9/gribex/fortranInterface.c:211:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((printLine+1),contents,printLength);
data/emoslib-4.5.9/gribex/fortranInterface.c:224:13:  [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(value) < 8 ) {
data/emoslib-4.5.9/gribex/fortranInterface.c:225: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).
            int missing = 8 - strlen(value);
data/emoslib-4.5.9/gribex/gdecode.c:298: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).
        for( loop = 0; loop < strlen(debugLevel) ; loop++ ) {
data/emoslib-4.5.9/gribex/getValues.c:28: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).
  return GETINT(grib,request,strlen(request));
data/emoslib-4.5.9/gribex/getValues.c:71: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).
  return GETREAL(grib,request,strlen(request));
data/emoslib-4.5.9/gribex/getsetValues.c:57:36:  [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).
  return GETINT(grib,request,(long)strlen((char*)request));
data/emoslib-4.5.9/gribex/getsetValues.c:82:37:  [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).
  return GETREAL(grib,request,(long)strlen((char*)request));
data/emoslib-4.5.9/gribex/getsetValues.c:399:42:  [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).
  return SETINT(grib,request,value,(long)strlen((char*)request));
data/emoslib-4.5.9/gribex/getsetValues.c:428:37:  [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).
  return SETREAL(grib,request,value,strlen((char*)request));
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:87:25:  [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).
  for( loop = 0; loop < strlen(count); loop++ )
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1575:37:  [1] (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 character.
          if( NEQUAL(octet,"n/a") ) strcpy(octet,"-");
data/emoslib-4.5.9/gribex/handleLocalDefinitions.c:1576:37:  [1] (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 character.
          if( NEQUAL(ksec1,"n/a") ) strcpy(ksec1,"-");
data/emoslib-4.5.9/gribex/local2c.c:81:20:  [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).
    sprintf((yfile+strlen(yfile)),"%3.3d",ktable);
data/emoslib-4.5.9/gribex/local2c.c:105:20:  [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).
            buffer[strlen(buffer)-1] = '\0';
data/emoslib-4.5.9/gribex/local2c.c:109:20:  [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).
            buffer[strlen(buffer)-1] = '\0';
data/emoslib-4.5.9/gribex/local2c.c:113:20:  [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).
            buffer[strlen(buffer)-1] = '\0';
data/emoslib-4.5.9/gribex/local2c.c:117:20:  [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).
            buffer[strlen(buffer)-1] = '\0';
data/emoslib-4.5.9/gribex/sencode.c:56: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).
        for( loop = 0; loop < strlen(debugLevel) ; loop++ ) {
data/emoslib-4.5.9/interpolation/describe_input_field.c:24:25:  [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 (!typeOfLevel || strlen(typeOfLevel) == 0)           return 255;
data/emoslib-4.5.9/interpolation/describe_input_field.c:496:13:  [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(gridName)) {
data/emoslib-4.5.9/interpolation/emos.c:97:35:  [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).
    return intout_(param,iv,dv,cv,strlen(param),strlen(cv));
data/emoslib-4.5.9/interpolation/emos.c:97:49:  [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).
    return intout_(param,iv,dv,cv,strlen(param),strlen(cv));
data/emoslib-4.5.9/interpolation/emos.c:103:34:  [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).
    return intin_(param,iv,dv,cv,strlen(param),strlen(cv));
data/emoslib-4.5.9/interpolation/emos.c:103:48:  [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).
    return intin_(param,iv,dv,cv,strlen(param),strlen(cv));
data/emoslib-4.5.9/interpolation/grfixed.h:38:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
C                    read one latitude line of a standard land sea
data/emoslib-4.5.9/interpolation/intlogs.c:18:20:  [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).
#define _fcdlen(a) strlen(a)
data/emoslib-4.5.9/interpolation/intlogs.c:54:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer,message,messageLen);
data/emoslib-4.5.9/interpolation/intlogs.c:73:15:  [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).
  INTLOGT(msg,strlen(msg));
data/emoslib-4.5.9/interpolation/intlogs.c:77:16:  [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).
  INTLOGT(msg1,strlen(msg1));
data/emoslib-4.5.9/interpolation/intlogs.c:78:16:  [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).
  INTLOGT(msg2,strlen(msg2));
data/emoslib-4.5.9/interpolation/itimer.c:37:24:  [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).
#    define _fcdlen(a) strlen(a)
data/emoslib-4.5.9/interpolation/jopnggsm.c:227:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(yold,yarray[i],20);
data/emoslib-4.5.9/interpolation/jopnggsm.c:228:5:  [1] (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 character.
    strcat(yold,"\0");
data/emoslib-4.5.9/interpolation/jopnggsm.c:269:24:  [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( (fn != NULL) && (strlen(fn) != 0) ) {
data/emoslib-4.5.9/interpolation/jopnggsm.c:271:5:  [1] (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 character.
    strcat( filename, "/");
data/emoslib-4.5.9/interpolation/jopnggsm.c:273:10:  [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).
    l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/jopnggsm.c:285:10:  [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).
    l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/jopnggsm.c:299:26:  [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( (fn != NULL) && (strlen(fn) != 0) ) {
data/emoslib-4.5.9/interpolation/jopnggsm.c:301:7:  [1] (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 character.
      strcat( filename, "/");
data/emoslib-4.5.9/interpolation/jopnggsm.c:311:21:  [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).
    INTLOGT(message,strlen(message));
data/emoslib-4.5.9/interpolation/jopnggsm.c:312:22:  [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).
    INTLOGT(filename,strlen(filename));
data/emoslib-4.5.9/interpolation/jopnggsm.c:317:22:  [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).
    sprintf(&filedum[strlen(filename)],"_%06d",process_id);
data/emoslib-4.5.9/interpolation/jopnggsm.c:319:10:  [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).
    l1 = strlen(filedum);
data/emoslib-4.5.9/interpolation/jopnggsm.c:326:24:  [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).
      sprintf(&filedum[strlen(filename)],"_%06d",process_id);
data/emoslib-4.5.9/interpolation/jopnggsm.c:327:12:  [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).
      l1 = strlen(filedum);
data/emoslib-4.5.9/interpolation/jopnggsm.c:392:8:  [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).
  l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/jopnllsm.c:249:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(yold,yarray[i],20);
data/emoslib-4.5.9/interpolation/jopnllsm.c:250:5:  [1] (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 character.
    strcat(yold,"\0");
data/emoslib-4.5.9/interpolation/jopnllsm.c:291:24:  [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( (fn != NULL) && (strlen(fn) != 0) ) {
data/emoslib-4.5.9/interpolation/jopnllsm.c:293:5:  [1] (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 character.
    strcat( filename, "/");
data/emoslib-4.5.9/interpolation/jopnllsm.c:295:10:  [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).
    l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/jopnllsm.c:307:10:  [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).
    l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/jopnllsm.c:321:26:  [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( (fn != NULL) && (strlen(fn) != 0) ) {
data/emoslib-4.5.9/interpolation/jopnllsm.c:323:7:  [1] (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 character.
      strcat( filename, "/");
data/emoslib-4.5.9/interpolation/jopnllsm.c:333:21:  [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).
    INTLOGT(message,strlen(message));
data/emoslib-4.5.9/interpolation/jopnllsm.c:334:22:  [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).
    INTLOGT(filename,strlen(filename));
data/emoslib-4.5.9/interpolation/jopnllsm.c:339:22:  [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).
    sprintf(&filedum[strlen(filename)],"_%07d",process_id);
data/emoslib-4.5.9/interpolation/jopnllsm.c:341:10:  [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).
    l1 = strlen(filedum);
data/emoslib-4.5.9/interpolation/jopnllsm.c:348:24:  [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).
      sprintf(&filedum[strlen(filename)],"_%07d",process_id);
data/emoslib-4.5.9/interpolation/jopnllsm.c:349:12:  [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).
      l1 = strlen(filedum);
data/emoslib-4.5.9/interpolation/jopnllsm.c:414:8:  [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).
  l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/makemap.c:67:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(fileName,filename,filenameLength);
data/emoslib-4.5.9/interpolation/makemap.c:251:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(number,(buffer+start),(end-start));
data/emoslib-4.5.9/interpolation/rename_unlink.c:48:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(old,oldname,lold);
data/emoslib-4.5.9/interpolation/rename_unlink.c:49:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(new,newname,lnew);
data/emoslib-4.5.9/interpolation/rename_unlink.c:72:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(old,oldname,lold);
data/emoslib-4.5.9/interpolation/sharedgg.c:103:24:  [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( (fn != NULL) && (strlen(fn) != 0) ) {
data/emoslib-4.5.9/interpolation/sharedgg.c:105:5:  [1] (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 character.
    strcat( filename, "/");
data/emoslib-4.5.9/interpolation/sharedgg.c:107:10:  [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).
    l1 = strlen(filename);
data/emoslib-4.5.9/interpolation/sharedlib.c:33: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).
    return (var != NULL) && (strlen(var) != 0) ? 1 : 0;
data/emoslib-4.5.9/interpolation/sharedlib.c:87:8:  [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(file) + 1 > INFO_PATH)
data/emoslib-4.5.9/interpolation/sharedlib.c:89:72:  [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).
        fprintf(stderr,"ERR: sharedmem:path too long(%lu) max is %d\n",strlen(file), INFO_PATH);
data/emoslib-4.5.9/interpolation/sharedlib.c:93:8:  [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(file) + 1 > sizeof(path))
data/emoslib-4.5.9/interpolation/sharedlib.c:95:73:  [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).
        fprintf(stderr,"ERR: sharedmem:path too long(%lu) max is %lu\n",strlen(file), sizeof(path));
data/emoslib-4.5.9/interpolation/sharedlib.c:271:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(read(fd, addr, len) != len) {
data/emoslib-4.5.9/interpolation/sharedlib.c:363:8:  [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(file) + 1 > sizeof(path))
data/emoslib-4.5.9/interpolation/sharedlib.c:365:73:  [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).
        fprintf(stderr,"ERR: sharedmem:path too long(%lu) max is %lu\n",strlen(file), sizeof(path));
data/emoslib-4.5.9/interpolation/sharedll.c:109:24:  [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( (fn != NULL) && (strlen(fn) != 0) ) {
data/emoslib-4.5.9/interpolation/sharedll.c:111:5:  [1] (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 character.
    strcat( filename, "/");
data/emoslib-4.5.9/interpolation/sharedll.c:113:10:  [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).
    l1 = strlen(filename);
data/emoslib-4.5.9/pbio/PBGroutines.c:1873: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).
        for( loop = 0; loop < strlen(debugLevel) ; loop++ ) {
data/emoslib-4.5.9/pbio/extras.c:27:13:  [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).
    for(i = strlen(source); i<length_target; i++)
data/emoslib-4.5.9/pbio/extras.c:45:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(env_copy, env_string, len_env_string);
data/emoslib-4.5.9/pbio/fort2c.c:39:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newp,name,len);
data/emoslib-4.5.9/pbio/fort2c.h:97:20:  [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).
#define _fcdlen(a) strlen(a)
data/emoslib-4.5.9/pbio/fort2c_hppa.c:40:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newp,name,len);
data/emoslib-4.5.9/pbio/newpbio.c:76:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( namebuff, name, NAMEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/newpbio.c:77:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( modebuff, mode, MODEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/newpbio.c:82:5:  [1] (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 character.
    strcpy(flags,"");
data/emoslib-4.5.9/pbio/newpbio.c:101:18:  [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).
    p  = fname + strlen(fname) - 1 ;
data/emoslib-4.5.9/pbio/newpbio.c:125:19:  [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).
    while(*p && ( strlen(flags) < 3 ) )
data/emoslib-4.5.9/pbio/newpbio.c:129:23:  [1] (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 character.
            case '+': strcat(flags, "+");
data/emoslib-4.5.9/pbio/newpbio.c:133:23:  [1] (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 character.
            case 'A': strcat(flags, "a");
data/emoslib-4.5.9/pbio/newpbio.c:139:23:  [1] (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 character.
            case 'W': strcat(flags, "w");
data/emoslib-4.5.9/pbio/newpbio.c:143:23:  [1] (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 character.
            case 'R': strcat(flags, "r");
data/emoslib-4.5.9/pbio/newpbio.c:371:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *iret = read(*unit, buffer, *nbytes);
data/emoslib-4.5.9/pbio/newpbio.c:426:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( namebuff, name, NAMEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/newpbio.c:427:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( modebuff, mode, MODEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/newpbio.c:450:18:  [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).
    p  = fname + strlen(fname) - 1 ;
data/emoslib-4.5.9/pbio/newpbio.c:504:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    dmas = umask(000);
data/emoslib-4.5.9/pbio/newpbio.c:506:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(dmas);
data/emoslib-4.5.9/pbio/pbio.c:129: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).
        for( loop = 0; loop < strlen(debugLevel) ; loop++ ) {
data/emoslib-4.5.9/pbio/pbio.c:153:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( namebuff, name, n1);
data/emoslib-4.5.9/pbio/pbio.c:154:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( modebuff, mode, n2);
data/emoslib-4.5.9/pbio/pbio.c:170:5:  [1] (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 character.
    strcpy(flags,"");
data/emoslib-4.5.9/pbio/pbio.c:179:21:  [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).
    p  = namebuff + strlen(namebuff) - 1 ;
data/emoslib-4.5.9/pbio/pbio.c:193:17:  [1] (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 character.
      case 'A': strcat(flags, "a");
data/emoslib-4.5.9/pbio/pbio.c:199:17:  [1] (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 character.
      case 'W': strcat(flags, "w");
data/emoslib-4.5.9/pbio/pbio.c:207:19:  [1] (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 character.
                  strcat(flags, "r");
data/emoslib-4.5.9/pbio/pbio.c:317: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).
        for( loop = 0; loop < strlen(envSize) ; loop++ ) {
data/emoslib-4.5.9/pbio/pbio.c:830:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *iret = read(*unit, buffer, *nbytes);
data/emoslib-4.5.9/pbio/pbio.c:879:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while((left > 0) && (len = read(*unit,(buffer+pos),chunk)) > 0)
data/emoslib-4.5.9/pbio/pbio.c:930:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *iret = read(*unit, buffer, *nbytes);
data/emoslib-4.5.9/pbio/pbio.c:1015: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).
        for( loop = 0; loop < strlen(debugLevel) ; loop++ ) {
data/emoslib-4.5.9/pbio/pbio.c:1039:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( namebuff, name, n1);
data/emoslib-4.5.9/pbio/pbio.c:1040:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( modebuff, mode, n2);
data/emoslib-4.5.9/pbio/pbio.c:1056:5:  [1] (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 character.
    strcpy(flags,"");
data/emoslib-4.5.9/pbio/pbio.c:1064:21:  [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).
    p  = namebuff + strlen(namebuff) - 1 ;
data/emoslib-4.5.9/pbio/pbio.c:1103:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    dmas = umask(000);
data/emoslib-4.5.9/pbio/pbio.c:1105:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(dmas);
data/emoslib-4.5.9/pbio/pbio_alpha.c:69:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( namebuff, name, NAMEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/pbio_alpha.c:70:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( modebuff, mode, MODEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/pbio_alpha.c:74:5:  [1] (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 character.
    strcpy(flags,"");
data/emoslib-4.5.9/pbio/pbio_alpha.c:111:19:  [1] (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 character.
        case 'A': strcat(flags, "a");
data/emoslib-4.5.9/pbio/pbio_alpha.c:117:19:  [1] (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 character.
        case 'W': strcat(flags, "w");
data/emoslib-4.5.9/pbio/pbio_alpha.c:121:19:  [1] (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 character.
        case 'R': strcat(flags, "r");
data/emoslib-4.5.9/pbio/pbio_alpha.c:531:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *iret = read(*unit, buffer, *nbytes);
data/emoslib-4.5.9/pbio/pbio_alpha.c:586:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( namebuff, name, NAMEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/pbio_alpha.c:587:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( modebuff, mode, MODEBUFFLEN - 1);
data/emoslib-4.5.9/pbio/pbio_alpha.c:610:18:  [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).
    p  = fname + strlen(fname) - 1 ;
data/emoslib-4.5.9/pbio/pbio_alpha.c:664:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    dmas = umask(000);
data/emoslib-4.5.9/pbio/pbio_alpha.c:666:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(dmas);
data/emoslib-4.5.9/sandbox/emos_tool.c:683:27:  [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).
                int len = strlen(options[j].name);
data/emoslib-4.5.9/sandbox/emos_tool.c:715:64:  [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 (strncmp(o->values[v].name, o->arg, strlen(o->arg)) == 0 ||
data/emoslib-4.5.9/sandbox/emos_tool.c:716:70:  [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).
                                strncmp(o->values[v].intout, o->arg, strlen(o->arg)) == 0) {
data/emoslib-4.5.9/sandbox/emos_tool.c:817:67:  [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).
                e = intout_(o->intout, o->ints, o->reals, o->arg, strlen(o->intout), strlen(o->arg));
data/emoslib-4.5.9/sandbox/emos_tool.c:817:86:  [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).
                e = intout_(o->intout, o->ints, o->reals, o->arg, strlen(o->intout), strlen(o->arg));
data/emoslib-4.5.9/tools/gg_gridname.c:84:12:  [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(a)>5 && (!strncmp("--eq=",a,5) || !strncmp("--ne=",a,5)) ) {
data/emoslib-4.5.9/tools/gg_single.c:64:16:  [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(a)>6  && (!strncmp("--lon=",a,6))) { lon = atof(&a[6]); }
data/emoslib-4.5.9/tools/gg_single.c:65:16:  [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).
      else if (strlen(a)>6  && (!strncmp("--lat=",a,6))) { lat = atof(&a[6]); }
data/emoslib-4.5.9/tools/gg_single.c:66:16:  [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).
      else if (strlen(a)==2 && (!strncmp("-n",a,2)))     { nn = 1; }
data/emoslib-4.5.9/tools/gg_single.c:67:16:  [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).
      else if (strlen(a)>7  && (!strncmp("--file=",a,7))) {
data/emoslib-4.5.9/tools/lsmReducedGaussian/bitPack.c:8:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((in = getchar()) != EOF)

ANALYSIS SUMMARY:

Hits = 734
Lines analyzed = 38170 in approximately 1.49 seconds (25555 lines/second)
Physical Source Lines of Code (SLOC) = 27422
Hits@level = [0] 848 [1] 152 [2] 460 [3]  36 [4]  83 [5]   3
Hits@level+ = [0+] 1582 [1+] 734 [2+] 582 [3+] 122 [4+]  86 [5+]   3
Hits/KSLOC@level+ = [0+] 57.6909 [1+] 26.7668 [2+] 21.2238 [3+] 4.44898 [4+] 3.13617 [5+] 0.109401
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.