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/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c
Examining data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifti_stats.c
Examining data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.h
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.h
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2.h
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/clib_02_nifti2.c
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c
Examining data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c
Examining data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h
Examining data/nifticlib-2.0.0+git186-g84740c2/fsliolib/examples/fsl_api_driver.c
Examining data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c
Examining data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.h
Examining data/nifticlib-2.0.0+git186-g84740c2/real_easy/parent_project_demo/src/parent_project_exe.c
Examining data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti_cdf_program.c
Examining data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/clib_01_read_write.c
Examining data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester002.c
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.h
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c
Examining data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h
Examining data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.h
Examining data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.c
Examining data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_io.h
Examining data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.h
Examining data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c
Examining data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_tool.c
Examining data/nifticlib-2.0.0+git186-g84740c2/cifti/cifti_tool.c
Examining data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_io.c

FINAL RESULTS:

data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:313: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(*hdrname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:314: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(*imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:521: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:524: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:527: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:530: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:534: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:537: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:541: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:544: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:572: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:575: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:578: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:581: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:584: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:587: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:590: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:593: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(tmpname,basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:1390: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(units,nifti_units_string(fslio->niftiptr->xyz_units));
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:1429: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(units,nifti_units_string(fslio->niftiptr->time_units));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:726:32:  [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.
      for( c = 0; c < 8; c++ ) fprintf(stderr," %" PRId64, nim->dim[c]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:733:32:  [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.
      for( c = 0; c < 8; c++ ) fprintf(stderr," %" PRId64, nim->dim[c]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:1100:41:  [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.
      for( c1 = 0; c1 < nbricks; c1++ ) fprintf(stderr,"  %" PRId64, blist[c1]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:1102:41:  [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.
      for( c1 = 0; c1 < nbricks; c1++ ) fprintf(stderr,"  %" PRId64, stmp[c1]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:1104:41:  [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.
      for( c1 = 0; c1 < nbricks; c1++ ) fprintf(stderr,"  %" PRId64, itmp[c1]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:1279: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).
  if( dup ) strcpy(dup, str);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3526:4:  [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(extcopy, ext);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3545:4:  [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(extcopy, ext);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3549:4:  [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(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3549:29:  [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(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3549:54:  [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(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3740:4:  [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(hdrname,basename);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3741:4:  [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(hdrname,elist[efirst]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3744:4:  [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(hdrname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3752:4:  [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(hdrname,basename);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3753:4:  [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(hdrname,elist[efirst]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3756:4:  [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(hdrname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3814: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(imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3815: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(imgname,extnia);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3828: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(imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3829: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(imgname,elist[first]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3832: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(imgname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3838: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(imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3839: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(imgname,elist[1-first]);  /* can do this with only 2 choices */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3842: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(imgname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3887:4:  [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(iname, prefix);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3906:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcat(iname, extnii);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3907:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_ASCII )    strcat(iname, extnia);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3908:50:  [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).
   else                                          strcat(iname, exthdr);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3911:49:  [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).
   if( comp && (!ext || !strstr(iname,extgz)) ) strcat(iname,extgz);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3961:4:  [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(iname, prefix);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3980:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcat(iname, extnii);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3981:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_ASCII )    strcat(iname, extnia);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3982:50:  [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).
   else                                          strcat(iname, extimg);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3985:49:  [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).
   if( comp && (!ext || !strstr(iname,extgz)) ) strcat(iname,extgz);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4583:30:  [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.
   for ( c = 0; c < 8; c++ ) fprintf(fp," %" PRId64, hp->dim[c]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8207:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  nifti_type = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8221:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  header_filename = %s\n",ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8224:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  image_filename = %s\n", ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8253:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  datatype_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8259:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  byteorder = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8274:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  intent_code_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8282:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) , "  intent_name = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8291:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8297:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8309:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8324:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  descrip = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8330:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  aux_file = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8337:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8375:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8387:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8414:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:796:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   len = sprintf( opts->command, "\n  command: %s", argv[0] );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:816:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      if( has_space ) len = sprintf(cp, " '%s'", argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:817:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      else            len = sprintf(cp, " %s",   argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:4937:16:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
               printf("%"PRId64, *(int64_t *)dp);
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:11051:4:  [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(unam,name);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:1170: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).
  if( dup ) strcpy(dup, str);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2605:4:  [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(extcopy, ext);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2623:4:  [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(extcopy, ext);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2627:4:  [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(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2627:29:  [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(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2627:54:  [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(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2795:4:  [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(hdrname,basename);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2796:4:  [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(hdrname,elist[efirst]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2799:4:  [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(hdrname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2807:4:  [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(hdrname,basename);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2808:4:  [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(hdrname,elist[efirst]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2811:4:  [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(hdrname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2869: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(imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2870: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(imgname,extnia);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2883: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(imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2884: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(imgname,elist[first]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2887: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(imgname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2893: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(imgname,basename);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2894: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(imgname,elist[1-first]);  /* can do this with only 2 choices */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2897: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(imgname,extzip);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2939:4:  [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(iname, prefix);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2958:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcat(iname, extnii);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2959:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_ASCII )    strcat(iname, extnia);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2960:50:  [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).
   else                                          strcat(iname, exthdr);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2963:49:  [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).
   if( comp && (!ext || !strstr(iname,extgz)) ) strcat(iname,extgz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3009:4:  [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(iname, prefix);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3028:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcat(iname, extnii);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3029:50:  [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).
   else if( nifti_type == NIFTI_FTYPE_ASCII )    strcat(iname, extnia);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3030:50:  [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).
   else                                          strcat(iname, extimg);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3033:49:  [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).
   if( comp && (!ext || !strstr(iname,extgz)) ) strcat(iname,extgz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6115:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  nifti_type = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6129:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  header_filename = %s\n",ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6132:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  image_filename = %s\n", ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6165:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  datatype_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6171:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  byteorder = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6186:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  intent_code_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6194:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) , "  intent_name = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6203:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6209:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6221:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6235:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  descrip = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6241:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  aux_file = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6248:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6286:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6298:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6325:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:83:42:  [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).
   nim->fname = (char *)calloc(1,ll+8) ; strcpy(nim->fname,tmpstr) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:84:42:  [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).
   nim->iname = (char *)calloc(1,ll+8) ; strcpy(nim->iname,tmpstr) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:695:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   len = sprintf( opts->command, "\n  command: %s", argv[0] );
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:715:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      if( has_space ) len = sprintf(cp, " '%s'", argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:716:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      else            len = sprintf(cp, " %s",   argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:217:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"nifti_add_extension %s",write_image_filename[filenameindex]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:223:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"valid_nifti_extension %s",write_image_filename[filenameindex]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:264:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"reload valid_nifti_extensions %s",write_image_filename[filenameindex]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:311:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(local_buffer,"nifti_hdr_looks_good %s",reference_image->fname);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:453:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_datatype_string %s",string);                       \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:507:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_units_string_test %s",string);             \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:526:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_intent_string %s",string);                 \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:572:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_slice_string_test %s",string);             \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:588:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_orientation_string_test %s",string);               \
data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.c:310:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(tmpstr,format,va);
data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.c:316:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   retval=vfprintf(stream->nzfptr,format,va);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:170:11:  [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.
  otype = getenv("FSLOUTPUTTYPE");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:599: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.
        otype = getenv("FSLMULTIFILEQUIT");
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c:175: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).
   fp = fopen(fname, "r");
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c:291:12:  [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(buf, bin_ptr, blen);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_io.c:215: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 * MIM_kids[AXIO_NMIM_KIDS+1] =
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_tool.c:77:23:  [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).
         opts->verb = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_tool.c:83:24:  [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).
         opts->xverb = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/cifti/cifti_tool.c:147:23:  [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).
         opts->verb = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/cifti/cifti_tool.c:153:24:  [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).
         opts->vread = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/cifti/cifti_tool.c:159:23:  [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).
         opts->verb = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/cifti/cifti_tool.c:160:24:  [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).
         opts->vread = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/cifti/cifti_tool.c:281: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).
      fp = fopen(fname, "w");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:19: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 data_type[10];                     /* 4 + 10    */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:20: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 db_name[18];                       /* 14 + 18   */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:30: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 vox_units[4];                      /* 16 + 4    */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:31: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 cal_units[8];                      /* 20 + 4    */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:57: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 descrip[80];                       /* 0 + 80    */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:58: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 aux_file[24];                      /* 80 + 24   */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:60: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 originator[10];                    /* 105 + 10  */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:61: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 generated[10];                     /* 115 + 10  */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:62: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 scannum[10];                       /* 125 + 10  */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:63: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 patient_id[10];                    /* 135 + 10  */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:64: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 exp_date[10];                      /* 145 + 10  */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:65: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 exp_time[10];                      /* 155 + 10  */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/dbh.h:66: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 hist_un0[3];                       /* 165 + 3   */
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/examples/fsl_api_driver.c:79: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).
        x = atoi(argv[3]);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/examples/fsl_api_driver.c:80: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).
        y = atoi(argv[4]);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/examples/fsl_api_driver.c:81: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).
        z = atoi(argv[5]);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/examples/fsl_api_driver.c:82: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).
        t = atoi(argv[6]);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:317:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*hdrname,".nii.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:318:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*imgname,".nii.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:323:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*hdrname,".nii");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:324:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*imgname,".nii");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:329:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*hdrname,".mnc.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:330:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*imgname,".mnc.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:335:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*hdrname,".mnc");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:336:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*imgname,".mnc");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:341:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*hdrname,".hdr.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:342:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*imgname,".img.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:347:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*hdrname,".hdr");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:348:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(*imgname,".img");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:522:3:  [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(tmpname,".nii");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:525:3:  [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(tmpname,".nii.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:528:3:  [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(tmpname,".mnc");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:531:3:  [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(tmpname,".mnc.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:535:3:  [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(tmpname,".img");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:538:3:  [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(tmpname,".img.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:542:3:  [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(tmpname,".hdr");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:545:3:  [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(tmpname,".hdr.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:573: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(tmpname,".nii");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:576: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(tmpname,".nii.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:579: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(tmpname,".mnc");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:582: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(tmpname,".mnc.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:585: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(tmpname,".img");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:588: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(tmpname,".img.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:591: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(tmpname,".hdr");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:594: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(tmpname,".hdr.gz");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:656: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 bopts[1024];
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:738: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(orig,&(ahdr.hist.originator),10);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:963: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(fslio->niftiptr->descrip,"FSL3.2beta");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:1927: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(fslio->niftiptr->descrip,"FSL3.2beta");
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:1958: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(hdr->hist.originator,blah,5*sizeof(short));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/clib_02_nifti2.c:80: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).
         nifti_set_debug_level(atoi(argv[ac]));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_type[10]; /*!< ++UNUSED++            */  /* char data_type[10];  */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:154:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  db_name[18];   /*!< ++UNUSED++            */  /* char db_name[18];    */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:187:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  descrip[80];   /*!< any text you like.    */  /* char descrip[80];    */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  aux_file[24];  /*!< auxiliary filename.   */  /* char aux_file[24];   */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 intent_name[16];/*!< 'name' or meaning of data.  */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 magic[4] ;      /*!< MUST be "ni1\0" or "n+1\0". */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti1.h:291:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct nifti1_extender { char extension[4] ; } ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2.h:64: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    magic[8];       /*!< MUST be valid signature */ /* char magic[4]       */ /*   4 */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2.h:81: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    descrip[80];    /*!< any text you like       */ /* char descrip[80]    */ /* 240 */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2.h:82: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    aux_file[24];   /*!< auxiliary filename      */ /* char aux_file[24]   */ /* 320 */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2.h:97: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    intent_name[16];/*!< name or meaning of data */ /* char intent_name[16]*/ /* 508 */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2.h:99: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    unused_str[15]; /*!< unused, filled with \0  */                           /* 525 */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:415: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 nifti1_magic[4] = { 'n', '+', '1', '\0' };
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:416: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 nifti2_magic[8] = { 'n', '+', '2', '\0', '\r', '\n', '\032', '\n' };
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:980: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(NBL->bricks[idest], NBL->bricks[sindex[c-1]], NBL->bsize);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3506: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 extcopy[8];
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3508: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   extnii[8] = ".nii";   /* modifiable, for possible uppercase */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3509: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   exthdr[8] = ".hdr";   /* (leave space for .gz) */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3510: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   extimg[8] = ".img";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3511: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   extnia[8] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3512: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   extgz[4]  = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3513: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 * elist[4]  = { NULL, NULL, NULL, NULL};
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3688: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  elist[2][5] = { ".hdr", ".nii" };
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3689: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  extzip[4]   = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3786: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 *basename, *imgname, elist[2][5] = { ".nii", ".img" };
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3787: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  extzip[4] = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3788: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  extnia[5] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3873: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   extnii[5] = ".nii";   /* modifiable, for possible uppercase */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3874: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   exthdr[5] = ".hdr";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3875: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   extimg[5] = ".img";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3876: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   extnia[5] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3877: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   extgz[5]  = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3902:10:  [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(&(iname[strlen(iname)-strlen(ext)]),exthdr,4);   /* then convert img name to hdr */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3947: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   extnii[5] = ".nii";   /* modifiable, for possible uppercase */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3948: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   exthdr[5] = ".hdr";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3949: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   extimg[5] = ".img";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3950: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   extnia[5] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3951: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   extgz[5]  = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3976:10:  [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(&(iname[strlen(iname)-strlen(ext)]),extimg,4);   /* then convert hdr name to img */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4169: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   caps[8] = "";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4194: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   caps[8] = "";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4882: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(nim->intent_name,nhdr.intent_name,15); nim->intent_name[15] = '\0';
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4902: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(nim->descrip ,nhdr.descrip ,79) ; nim->descrip [79] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4903: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(nim->aux_file,nhdr.aux_file,23) ; nim->aux_file[23] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5150: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(nim->intent_name,nhdr.intent_name,15); nim->intent_name[15] = '\0';
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5170: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(nim->descrip ,nhdr.descrip ,79) ; nim->descrip [79] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5171: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(nim->aux_file,nhdr.aux_file,23) ; nim->aux_file[23] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5333:4:  [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(hptr, &nhdr, sizeof(nifti_1_header));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5436:4:  [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(hptr, &nhdr, sizeof(nifti_2_header));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5761: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(&n2hdr, &n1hdr, h1size);   /* copy first part */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5782: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(hresult, (void *)&n1hdr, h1size);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5794: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(hresult, &n2hdr, h2size);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5810: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(hresult, (void *)&n1hdr, h1size);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:5914: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(&n2hdr, &n1hdr, h1size);   /* copy first part */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:6042: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  buf[16];
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:6072: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        * sbuf, lfunc[25] = { "nifti_read_ascii_image" };
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:6290: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(*list, tmplist, (new_length-1)*sizeof(nifti1_extension));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:6341:4:  [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(ext->edata, data, len);  /* copy the data, using len */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7030: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               extdr[4] = { 0, 0, 0, 0 };
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7110:4:  [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(nhdr.magic, nifti2_magic, 8);  /* init to single file */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7194:4:  [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(nhdr->magic, nifti2_magic, 8);  /* init to single file */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7276:4:  [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(nhdr->magic, "n+1");  /* init to single file */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7398:6:  [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(nhdr.descrip ,nim->descrip ,79) ; nhdr.descrip[79] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7401:6:  [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(nhdr.aux_file ,nim->aux_file ,23) ; nhdr.aux_file[23] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7408:52:  [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( nim->nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcpy(nhdr.magic,"n+1") ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7409:52:  [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.
     else                                          strcpy(nhdr.magic,"ni1") ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7428:8:  [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(nhdr.intent_name,nim->intent_name,15) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7475:4:  [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(hdr, &nhdr, sizeof(nhdr));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7506:50:  [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( nim->nifti_type == NIFTI_FTYPE_NIFTI2_1 ) strcpy(nhdr.magic,"n+2") ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7507:50:  [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.
   else                                          strcpy(nhdr.magic,"ni2") ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7541:6:  [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(nhdr.descrip ,nim->descrip ,79) ; nhdr.descrip[79] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7544:6:  [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(nhdr.aux_file ,nim->aux_file ,23) ; nhdr.aux_file[23] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7578:6:  [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(nhdr.intent_name,nim->intent_name,15) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7587:4:  [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(hdr, &nhdr, sizeof(nhdr));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7648: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(data, nim_src->ext_list[c].edata, old_size-8);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:7997: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(dest, src, sizeof(nifti_image));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8165:21:  [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 '&':  memcpy(out+jj,"&amp;",5)  ; jj+=5 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8167:21:  [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 '<':  memcpy(out+jj,"&lt;",4)   ; jj+=4 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8168:21:  [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 '>':  memcpy(out+jj,"&gt;",4)   ; jj+=4 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8170:21:  [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 '"' : memcpy(out+jj,"&quot;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8172:21:  [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 '\'': memcpy(out+jj,"&apos;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8174:21:  [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 CR:   memcpy(out+jj,"&#x0d;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8175:21:  [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 LF:   memcpy(out+jj,"&#x0a;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8205: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( buf , "<nifti_image\n" ) ;   /* XML-ish opener */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8226: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( buf+strlen(buf) , "  image_offset = '%" PRId64 "'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8229: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( buf+strlen(buf), "  ndim = '%" PRId64 "'\n",nim->ndim);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8230: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( buf+strlen(buf), "  nx = '%" PRId64 "'\n",  nim->nx  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8232: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( buf+strlen(buf), "  ny = '%" PRId64 "'\n",  nim->ny  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8234: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( buf+strlen(buf), "  nz = '%" PRId64 "'\n",  nim->nz  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8236: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( buf+strlen(buf), "  nt = '%" PRId64 "'\n",  nim->nt  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8238: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( buf+strlen(buf), "  nu = '%" PRId64 "'\n",  nim->nu  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8240: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( buf+strlen(buf), "  nv = '%" PRId64 "'\n",  nim->nv  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8242: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( buf+strlen(buf), "  nw = '%" PRId64 "'\n",  nim->nw  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8244:24:  [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( buf+strlen(buf), "  dx = '%g'\n",   nim->dx  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8245:24:  [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.
   if( nim->ndim > 1 ) sprintf( buf+strlen(buf), "  dy = '%g'\n",   nim->dy  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8246:24:  [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.
   if( nim->ndim > 2 ) sprintf( buf+strlen(buf), "  dz = '%g'\n",   nim->dz  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8247:24:  [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.
   if( nim->ndim > 3 ) sprintf( buf+strlen(buf), "  dt = '%g'\n",   nim->dt  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8248:24:  [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.
   if( nim->ndim > 4 ) sprintf( buf+strlen(buf), "  du = '%g'\n",   nim->du  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8249:24:  [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.
   if( nim->ndim > 5 ) sprintf( buf+strlen(buf), "  dv = '%g'\n",   nim->dv  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8250:24:  [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.
   if( nim->ndim > 6 ) sprintf( buf+strlen(buf), "  dw = '%g'\n",   nim->dw  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8252: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( buf+strlen(buf) , "  datatype = '%d'\n" , nim->datatype ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8256: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( buf+strlen(buf) , "  nvox = '%" PRId64 "'\n" ,  nim->nvox ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8257: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( buf+strlen(buf) , "  nbyper = '%d'\n" , nim->nbyper ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8263:6:  [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( buf+strlen(buf) , "  cal_min = '%g'\n", nim->cal_min ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8264:6:  [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( buf+strlen(buf) , "  cal_max = '%g'\n", nim->cal_max ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8268:6:  [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( buf+strlen(buf) , "  scl_slope = '%g'\n" , nim->scl_slope ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8269:6:  [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( buf+strlen(buf) , "  scl_inter = '%g'\n" , nim->scl_inter ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8273:6:  [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( buf+strlen(buf) , "  intent_code = '%d'\n", nim->intent_code ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8276:6:  [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( buf+strlen(buf) , "  intent_p1 = '%g'\n" , nim->intent_p1 ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8277:6:  [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( buf+strlen(buf) , "  intent_p2 = '%g'\n" , nim->intent_p2 ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8278:6:  [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( buf+strlen(buf) , "  intent_p3 = '%g'\n" , nim->intent_p3 ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8288:6:  [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( buf+strlen(buf) , "  toffset = '%g'\n",nim->toffset ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8303:6:  [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( buf+strlen(buf) , "  freq_dim = '%d'\n",nim->freq_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8305:6:  [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( buf+strlen(buf) , "  phase_dim = '%d'\n",nim->phase_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8307:6:  [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( buf+strlen(buf) , "  slice_dim = '%d'\n",nim->slice_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8314:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8319:6:  [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( buf+strlen(buf) , "  slice_duration = '%g'\n",
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8351:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8362:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8401:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8423: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( buf+strlen(buf) , "  num_ext = '%d'\n", nim->num_ext ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8425: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( buf+strlen(buf) , "/>\n" ) ;   /* XML-ish closer */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8444:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   union { unsigned char bb[2] ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8484: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 lhs[1024] , rhs[1024] ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8538: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(rhs,str+spos+1,nn) ; rhs[nn] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:198: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   intent_name[16] ;      /*!< optional description of intent data */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:200: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 descrip[80]  ;           /*!< optional text to describe dataset   */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:201: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 aux_file[24] ;           /*!< auxiliary filename                  */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:285: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  intent_name[16] ;       /*!< optional description of intent data */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:287: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 descrip[80]  ;           /*!< optional text to describe dataset   */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:288: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 aux_file[24] ;           /*!< auxiliary filename                  */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:320: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.
       char data_type[10];              /* 4 + 10       same              */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:321: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.
       char db_name[18];                /* 14 + 18      same              */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:354: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.
       char descrip[80];                /* 0 + 80       same              */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:355: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.
       char aux_file[24];               /* 80 + 24      same              */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:357: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.
       char originator[10];             /* 105 + 10     FROM HERE DOWN... */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:358: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.
       char generated[10];              /* 115 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:359: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.
       char scannum[10];                /* 125 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:360: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.
       char patient_id[10];             /* 135 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:361: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.
       char exp_date[10];               /* 145 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:362: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.
       char exp_time[10];               /* 155 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.h:363: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.
       char hist_un0[3];                /* 165 + 3                        */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:221: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 * g_hdr_timing_fnames[NT_HDR_TIME_NFIELDS] = {
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:224: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 * g_nim_timing_fnames[NT_NIM_TIME_NFIELDS] = {
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:440:24:  [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).
         opts->debug = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:581:31:  [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).
         opts->new_datatype = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:603:25:  [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).
            int index = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2171: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).
   fp = fopen(filename, "r");
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2292:14:  [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).
   ext_ind = atoi(opts->elist.list[0]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2359: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).
   extval = atoi(elist[0]);  /* check the first value */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2382:16:  [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).
      extval = atoi(elist[ec]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2749: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          mesg[32], *mptr;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2766:10:  [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(mesg, "    ext #%d : ", ec);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:4918: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 * dp, fbuf[NT_LOC_MAX_FLOAT_BUF];
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5068: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          mesg[80] = "";
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5080: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(mesg, "= qform_code = %d\n", nim->qform_code);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5082: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(mesg, "= sform_code = %d\n", nim->sform_code);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5457:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void * nt_read_header(const char * fname, int * nver, int * swapped, int check,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.h:41: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     command[NT_CMD_LEN]; /* for inserting the command     */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.h:91: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 name[NT_FIELD_NAME_LEN]; /* actual structure name used          */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.h:262:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void * nt_read_header(const char * fname, int * nver, int * swapped, int check,
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:1507:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:1664:14:  [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).
        T4 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:1712:15:  [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).
        T10 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:1748:15:  [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).
        T14 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:1779:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:1874:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2038:14:  [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).
        T5 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2074:14:  [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).
        T9 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2107:15:  [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).
        T12 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2149:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2237:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2362:14:  [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).
        T6 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2402:15:  [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).
        T10 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2437:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2535:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2623:14:  [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).
        T5 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2654:14:  [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).
        T9 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2684:15:  [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).
        T12 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2711:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2806:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2927:14:  [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).
        T6 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2963:15:  [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).
        T10 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:2999:15:  [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).
        T14 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3030:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3138:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3236:14:  [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).
        T5 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3267:14:  [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).
        T9 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3298:15:  [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).
        T13 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3328:15:  [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).
        T16 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3355:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3456:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3606:14:  [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).
        T7 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3655:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3760:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3918:14:  [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).
        T6 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3953:14:  [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).
        T9 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:3986:15:  [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).
        T12 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4029:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4319:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4429:14:  [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).
        T6 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4464:14:  [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).
        T9 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4495:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4576:9:  [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).
#define atol (1.0e-50)
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4679:14:  [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).
        T6 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4715:15:  [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).
        T10 = atol;
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:4746:8:  [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).
#undef atol
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_type[10]; /*!< ++UNUSED++            */  /* char data_type[10];  */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:154:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  db_name[18];   /*!< ++UNUSED++            */  /* char db_name[18];    */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:187:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  descrip[80];   /*!< any text you like.    */  /* char descrip[80];    */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  aux_file[24];  /*!< auxiliary filename.   */  /* char aux_file[24];   */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 intent_name[16];/*!< 'name' or meaning of data.  */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 magic[4] ;      /*!< MUST be "ni1\0" or "n+1\0". */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1.h:291:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct nifti1_extender { char extension[4] ; } ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:877: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(NBL->bricks[idest], NBL->bricks[sindex[c-1]], NBL->bsize);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:967:4:  [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(*slist, blist, nbricks*sizeof(int));
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2585: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 extcopy[8];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2587: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   extnii[8] = ".nii";   /* modifiable, for possible uppercase */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2588: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   exthdr[8] = ".hdr";   /* (leave space for .gz) */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2589: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   extimg[8] = ".img";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2590: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   extnia[8] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2591: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   extgz[4]  = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2592: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 * elist[4]  = { NULL, NULL, NULL, NULL};
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2743: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  elist[2][5] = { ".hdr", ".nii" };
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2744: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  extzip[4]   = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2841: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 *basename, *imgname, elist[2][5] = { ".nii", ".img" };
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2842: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  extzip[4] = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2843: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  extnia[5] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2928: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   extnii[5] = ".nii";   /* modifiable, for possible uppercase */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2929: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   exthdr[5] = ".hdr";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2930: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   extimg[5] = ".img";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2931: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   extnia[5] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2932: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   extgz[5]  = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2954:10:  [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(&(iname[strlen(iname)-strlen(ext)]),exthdr,4);   /* then convert img name to hdr */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2998: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   extnii[5] = ".nii";   /* modifiable, for possible uppercase */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2999: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   exthdr[5] = ".hdr";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3000: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   extimg[5] = ".img";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3001: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   extnia[5] = ".nia";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3002: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   extgz[5]  = ".gz";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3024:10:  [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(&(iname[strlen(iname)-strlen(ext)]),extimg,4);   /* then convert hdr name to img */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3216: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 caps[8] = "";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3241: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 caps[8] = "";
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3843: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(nim->intent_name,nhdr.intent_name,15); nim->intent_name[15] = '\0';
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3863: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(nim->descrip ,nhdr.descrip ,79) ; nim->descrip [79] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3864: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(nim->aux_file,nhdr.aux_file,23) ; nim->aux_file[23] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:4033:4:  [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(hptr, &nhdr, sizeof(nifti_1_header));
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:4291: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  buf[16];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:4321: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        * sbuf, lfunc[25] = { "nifti_read_ascii_image" };
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:4535: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(*list, tmplist, (new_length-1)*sizeof(nifti1_extension));
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:4585:4:  [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(ext->edata, data, len);  /* copy the data, using len */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5201: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               extdr[4] = { 0, 0, 0, 0 };
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5283:4:  [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(nhdr.magic, "n+1");  /* init to single file */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5364:4:  [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(nhdr->magic, "n+1");  /* init to single file */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5463:6:  [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(nhdr.descrip ,nim->descrip ,79) ; nhdr.descrip[79] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5466:6:  [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(nhdr.aux_file ,nim->aux_file ,23) ; nhdr.aux_file[23] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5473:52:  [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( nim->nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcpy(nhdr.magic,"n+1") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5474:52:  [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.
     else                                          strcpy(nhdr.magic,"ni1") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5486:8:  [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(nhdr.intent_name,nim->intent_name,15) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5587: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(data, nim_src->ext_list[c].edata, old_size-8);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5909: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(dest, src, sizeof(nifti_image));
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6076:21:  [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 '&':  memcpy(out+jj,"&amp;",5)  ; jj+=5 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6078:21:  [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 '<':  memcpy(out+jj,"&lt;",4)   ; jj+=4 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6079:21:  [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 '>':  memcpy(out+jj,"&gt;",4)   ; jj+=4 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6081:21:  [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 '"' : memcpy(out+jj,"&quot;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6083:21:  [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 '\'': memcpy(out+jj,"&apos;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6085:21:  [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 CR:   memcpy(out+jj,"&#x0d;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6086:21:  [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 LF:   memcpy(out+jj,"&#x0a;",6) ; jj+=6 ; break ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6113: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( buf , "<nifti_image\n" ) ;   /* XML-ish opener */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6134: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( buf+strlen(buf) , "  image_offset = '%d'\n" , nim->iname_offset );
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6136: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(buf + strlen(buf), "  ndim = '%d'\n", nim->ndim);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6137: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(buf + strlen(buf), "  nx = '%d'\n", nim->nx);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6139:6:  [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(buf + strlen(buf), "  ny = '%d'\n", nim->ny);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6141:6:  [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(buf + strlen(buf), "  nz = '%d'\n", nim->nz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6143:6:  [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(buf + strlen(buf), "  nt = '%d'\n", nim->nt);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6145:6:  [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(buf + strlen(buf), "  nu = '%d'\n", nim->nu);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6147:6:  [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(buf + strlen(buf), "  nv = '%d'\n", nim->nv);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6149:6:  [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(buf + strlen(buf), "  nw = '%d'\n", nim->nw);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6150: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(buf + strlen(buf), "  dx = '%g'\n", nim->dx);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6152:6:  [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(buf + strlen(buf), "  dy = '%g'\n", nim->dy);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6154:6:  [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(buf + strlen(buf), "  dz = '%g'\n", nim->dz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6156:6:  [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(buf + strlen(buf), "  dt = '%g'\n", nim->dt);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6158:6:  [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(buf + strlen(buf), "  du = '%g'\n", nim->du);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6160:6:  [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(buf + strlen(buf), "  dv = '%g'\n", nim->dv);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6162:6:  [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(buf + strlen(buf), "  dw = '%g'\n", nim->dw);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6164: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( buf+strlen(buf) , "  datatype = '%d'\n" , nim->datatype ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6168: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( buf+strlen(buf) , "  nvox = '%u'\n" , (unsigned)nim->nvox ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6169: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( buf+strlen(buf) , "  nbyper = '%d'\n" , nim->nbyper ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6175:6:  [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( buf+strlen(buf) , "  cal_min = '%g'\n", nim->cal_min ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6176:6:  [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( buf+strlen(buf) , "  cal_max = '%g'\n", nim->cal_max ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6180:6:  [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( buf+strlen(buf) , "  scl_slope = '%g'\n" , nim->scl_slope ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6181:6:  [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( buf+strlen(buf) , "  scl_inter = '%g'\n" , nim->scl_inter ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6185:6:  [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( buf+strlen(buf) , "  intent_code = '%d'\n", nim->intent_code ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6188:6:  [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( buf+strlen(buf) , "  intent_p1 = '%g'\n" , nim->intent_p1 ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6189:6:  [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( buf+strlen(buf) , "  intent_p2 = '%g'\n" , nim->intent_p2 ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6190:6:  [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( buf+strlen(buf) , "  intent_p3 = '%g'\n" , nim->intent_p3 ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6200:6:  [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( buf+strlen(buf) , "  toffset = '%g'\n",nim->toffset ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6215:6:  [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( buf+strlen(buf) , "  freq_dim = '%d'\n",nim->freq_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6217:6:  [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( buf+strlen(buf) , "  phase_dim = '%d'\n",nim->phase_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6219:6:  [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( buf+strlen(buf) , "  slice_dim = '%d'\n",nim->slice_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6226:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6230:6:  [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( buf+strlen(buf) , "  slice_duration = '%g'\n",
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6262:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6273:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6312:6:  [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( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6334: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( buf+strlen(buf) , "  num_ext = '%d'\n", nim->num_ext ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6336: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( buf+strlen(buf) , "/>\n" ) ;   /* XML-ish closer */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6354:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   union { unsigned char bb[2] ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6394: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 lhs[1024] , rhs[1024] ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6448: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(rhs,str+spos+1,nn) ; rhs[nn] = '\0' ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:154: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  intent_name[16] ;       /*!< optional description of intent data */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:156: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 descrip[80]  ;           /*!< optional text to describe dataset   */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:157: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 aux_file[24] ;           /*!< auxiliary filename                  */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:191: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.
       char data_type[10];              /* 4 + 10       same              */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:192: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.
       char db_name[18];                /* 14 + 18      same              */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:225: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.
       char descrip[80];                /* 0 + 80       same              */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:226: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.
       char aux_file[24];               /* 80 + 24      same              */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:228: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.
       char originator[10];             /* 105 + 10     FROM HERE DOWN... */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:229: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.
       char generated[10];              /* 115 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:230: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.
       char scannum[10];                /* 125 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:231: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.
       char patient_id[10];             /* 135 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:232: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.
       char exp_date[10];               /* 145 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:233: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.
       char exp_time[10];               /* 155 + 10                       */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.h:234: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.
       char hist_un0[3];                /* 165 + 3                        */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:87:6:  [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(nim->fname,".nii") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:88:6:  [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(nim->iname,".nii") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:90:6:  [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(nim->fname,".nia") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:91:6:  [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(nim->iname,".nia") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:93:6:  [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(nim->fname,".hdr") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:94:6:  [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(nim->iname,".img") ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:97:6:  [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(nim->fname,".gz");
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:98:6:  [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(nim->iname,".gz");
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:350:36:  [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).
            opts->ci_dims[index] = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:359:24:  [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).
         opts->debug = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:394:36:  [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).
            opts->ci_dims[index] = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:413:36:  [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).
            opts->ci_dims[index] = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:469:36:  [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).
            opts->new_dim[index] = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:476:31:  [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).
         opts->new_datatype = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:498:25:  [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).
            int index = atoi(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:1911: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).
   fp = fopen(filename, "r");
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2032:14:  [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).
   ext_ind = atoi(opts->elist.list[0]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2099: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).
   extval = atoi(elist[0]);  /* check the first value */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2122:16:  [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).
      extval = atoi(elist[ec]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2343: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          mesg[32];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2360:10:  [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(mesg, "    ext #%d : ", ec);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:3798: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 * dp, fbuf[32];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:3827:16:  [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(fbuf,"%f", *(float *)dp);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:3834:16:  [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(fbuf,"%f", *(double *)dp);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.h:40: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     command[NT_CMD_LEN]; /* for inserting the command     */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.h:85: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 name[NT_FIELD_NAME_LEN]; /* actual structure name used          */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:177: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 TEMP_STR[256];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:186: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.
  const char write_image_filename[6][64]={
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:199: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 buf[512];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:310: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 local_buffer[512];
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:364: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.
  const char * FILE_NAMES[NUM_FILE_NAMES]={
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:374: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.
  const char * KNOWN_FILE_BASENAMES[NUM_FILE_NAMES]={
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:452: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 buf[64];                                                         \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:479: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 buf[64];                                         \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:480: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(buf,"nifti_datatype_string %d",constant);     \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:506: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 buf[64];                                                 \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:525: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 buf[64];                                                 \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:571: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 buf[64];                                                 \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:587: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 buf[64];                                                         \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:606: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 buf[64];                                                 \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:607: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(buf,"nifti_datatype_sizes_test %d",constant);         \
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:661: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.
  static char x[16] = { 'a','b','c','d','e','f','g','h',
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:673: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.
  static char x[8] = { 'a','b','c','d','D','C','B','A' };
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/clib_01_read_write.c:65: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).
         nifti_set_debug_level(atoi(argv[ac]));
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:118:14:  [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).
        fp = fopen(hdr_file,"r");
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:141:14:  [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).
        fp = fopen(data_file,"r");
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:266:14:  [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).
        fp = fopen(hdr_file,"w");
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:302:22:  [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).
                fp = fopen(data_file,"w");
data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.c:71:24:  [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((file->nzfptr = fopen(path,mode)) == NULL) {
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c:872: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).
   len = strlen(str);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c:891:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, str+ifirst, len-ifirst-ilast);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c:950:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy((*ostr)+*olen-1, istr, ilen);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml.c:966:14:  [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).
       len = strlen(str);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_io.c:121: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).
   else             len = strlen(str);
data/nifticlib-2.0.0+git186-g84740c2/cifti/afni_xml_io.c:167:14:  [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).
      slen = strlen(ax->attrs.name[ind]);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:200: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).
  flen = strlen(fname);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:294: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).
  blen = strlen(basename);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:311: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).
  *hdrname = (char *)calloc(sizeof(char),strlen(basename)+8);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:312: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).
  *imgname = (char *)calloc(sizeof(char),strlen(basename)+8);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:519:28:  [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).
  tmpname = (char *)calloc(strlen(basename) + 10,sizeof(char));
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:569:32:  [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).
      tmpname = (char *)calloc(strlen(basename) + 10,sizeof(char));
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:663: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=0;i<strlen(opts);i++) {
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:1345:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(aux_file,fslio->niftiptr->aux_file, 24);
data/nifticlib-2.0.0+git186-g84740c2/fsliolib/fslio.c:1358:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fslio->niftiptr->aux_file, aux_file, 24);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:1276: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).
  dup = (char *)malloc(strlen(str) + 1);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:1281:50:  [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).
                           " bytes\n", (int64_t)(strlen(str)+1));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3520: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).
   len = (int)strlen(name);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3578:17:  [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).
     len = (int)strlen(fname);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3580: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).
     if (fileext_compare(fname + strlen(fname) - 3,".gz")==0) { return 1; }
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3613: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).
     basename[strlen(basename)-strlen(ext)] = '\0';  /* clear out extension */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3613:32:  [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).
     basename[strlen(basename)-strlen(ext)] = '\0';  /* clear out extension */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3733: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).
   hdrname = (char *)calloc(sizeof(char),strlen(basename)+8);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3796: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).
   imgname = (char *)calloc(sizeof(char),strlen(basename)+8);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3882:40:  [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).
   iname = (char *)calloc(sizeof(char),strlen(prefix)+8);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3902: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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),exthdr,4);   /* then convert img name to hdr */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3902:39:  [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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),exthdr,4);   /* then convert img name to hdr */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3956:40:  [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).
   iname = (char *)calloc(sizeof(char),strlen(prefix)+8);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3976: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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),extimg,4);   /* then convert hdr name to img */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:3976:39:  [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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),extimg,4);   /* then convert hdr name to img */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4178: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).
   len = strlen(known_ext);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4203: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).
   len = strlen(known_ext);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4222: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).
   for(c = 0; c < strlen(str); c++ ) {
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4238: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).
   for(c = 0; c < strlen(str); c++ ) {
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4255: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).
   for(c = 0; c < strlen(str); c++ )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:4267: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).
   for(c = 0; c < strlen(str); c++ )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8035:14:  [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).
   ll = (int)strlen(str) ; if( ll == 0 ) return 0 ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8132: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).
   if( str == NULL || (lstr=(int)strlen(str)) == 0 ){      /* 0 length */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8207:17:  [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( buf+strlen(buf) , "  nifti_type = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8221:17:  [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( buf+strlen(buf) , "  header_filename = %s\n",ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8224:17:  [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( buf+strlen(buf) , "  image_filename = %s\n", ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8226:17:  [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( buf+strlen(buf) , "  image_offset = '%" PRId64 "'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8229:17:  [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( buf+strlen(buf), "  ndim = '%" PRId64 "'\n",nim->ndim);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8230:17:  [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( buf+strlen(buf), "  nx = '%" PRId64 "'\n",  nim->nx  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8232: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( buf+strlen(buf), "  ny = '%" PRId64 "'\n",  nim->ny  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8234: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( buf+strlen(buf), "  nz = '%" PRId64 "'\n",  nim->nz  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8236: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( buf+strlen(buf), "  nt = '%" PRId64 "'\n",  nim->nt  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8238: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( buf+strlen(buf), "  nu = '%" PRId64 "'\n",  nim->nu  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8240: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( buf+strlen(buf), "  nv = '%" PRId64 "'\n",  nim->nv  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8242: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( buf+strlen(buf), "  nw = '%" PRId64 "'\n",  nim->nw  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8244: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).
                       sprintf( buf+strlen(buf), "  dx = '%g'\n",   nim->dx  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8245: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).
   if( nim->ndim > 1 ) sprintf( buf+strlen(buf), "  dy = '%g'\n",   nim->dy  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8246: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).
   if( nim->ndim > 2 ) sprintf( buf+strlen(buf), "  dz = '%g'\n",   nim->dz  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8247: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).
   if( nim->ndim > 3 ) sprintf( buf+strlen(buf), "  dt = '%g'\n",   nim->dt  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8248: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).
   if( nim->ndim > 4 ) sprintf( buf+strlen(buf), "  du = '%g'\n",   nim->du  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8249: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).
   if( nim->ndim > 5 ) sprintf( buf+strlen(buf), "  dv = '%g'\n",   nim->dv  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8250: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).
   if( nim->ndim > 6 ) sprintf( buf+strlen(buf), "  dw = '%g'\n",   nim->dw  );
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8252:17:  [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( buf+strlen(buf) , "  datatype = '%d'\n" , nim->datatype ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8253:17:  [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( buf+strlen(buf) , "  datatype_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8256:17:  [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( buf+strlen(buf) , "  nvox = '%" PRId64 "'\n" ,  nim->nvox ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8257:17:  [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( buf+strlen(buf) , "  nbyper = '%d'\n" , nim->nbyper ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8259:17:  [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( buf+strlen(buf) , "  byteorder = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8263: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).
     sprintf( buf+strlen(buf) , "  cal_min = '%g'\n", nim->cal_min ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8264: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).
     sprintf( buf+strlen(buf) , "  cal_max = '%g'\n", nim->cal_max ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8268: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).
     sprintf( buf+strlen(buf) , "  scl_slope = '%g'\n" , nim->scl_slope ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8269: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).
     sprintf( buf+strlen(buf) , "  scl_inter = '%g'\n" , nim->scl_inter ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8273: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).
     sprintf( buf+strlen(buf) , "  intent_code = '%d'\n", nim->intent_code ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8274: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).
     sprintf( buf+strlen(buf) , "  intent_code_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8276: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).
     sprintf( buf+strlen(buf) , "  intent_p1 = '%g'\n" , nim->intent_p1 ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8277: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).
     sprintf( buf+strlen(buf) , "  intent_p2 = '%g'\n" , nim->intent_p2 ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8278: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).
     sprintf( buf+strlen(buf) , "  intent_p3 = '%g'\n" , nim->intent_p3 ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8282: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).
       sprintf( buf+strlen(buf) , "  intent_name = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8288: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).
     sprintf( buf+strlen(buf) , "  toffset = '%g'\n",nim->toffset ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8291: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8297: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8303: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).
     sprintf( buf+strlen(buf) , "  freq_dim = '%d'\n",nim->freq_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8305: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).
     sprintf( buf+strlen(buf) , "  phase_dim = '%d'\n",nim->phase_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8307: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).
     sprintf( buf+strlen(buf) , "  slice_dim = '%d'\n",nim->slice_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8309: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8314: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8319: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).
     sprintf( buf+strlen(buf) , "  slice_duration = '%g'\n",
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8324: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).
     sprintf( buf+strlen(buf) , "  descrip = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8330: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).
     sprintf( buf+strlen(buf) , "  aux_file = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8337: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8351: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8362: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8375: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).
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8387: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8401: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8414: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).
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8423:17:  [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( buf+strlen(buf) , "  num_ext = '%d'\n", nim->num_ext ) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8425:17:  [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( buf+strlen(buf) , "/>\n" ) ;   /* XML-ish closer */
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8427: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).
   nbuf = (int)strlen(buf) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8471:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                       strncpy(nim->nam,rhs,ml), nim->nam[ml]='\0'
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8493:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
   ii = sscanf( str+spos , "%1023s%n" , lhs , &nn ) ; spos += nn ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8523:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
     ii = sscanf( str+spos , "%1023s%n" , lhs , &nn ) ; spos += nn ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:8541:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        ii = sscanf( str+spos , "%1023s%n" , rhs , &nn ) ; spos += nn ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti2_io.c:9342: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).
   slen = (int)strlen(str) ;
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:805: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).
      len = strlen(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2062:56:  [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,"   command len         : %d\n",(int)strlen(opts->command));
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2101:17:  [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).
         elen = strlen(ext);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2126: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).
                             strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:2313: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).
                             strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3174:33:  [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).
                                strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3284:33:  [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).
                                strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3423:33:  [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).
                                strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3483: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).
                             strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3624:17:  [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( !data || strlen(data) == 0 )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3780: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).
            nchars = strlen(data);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:3781:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dest, data, field->len);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:4283:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(fp->name, name, NT_FIELD_NAME_LEN-1);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:4998: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).
   len = strlen(dp);
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5311: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).
                          strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5369: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).
                          strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5429:39:  [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(fname,NT_MAKE_IM_NAME,strlen(NT_MAKE_IM_NAME)) ) {
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5472:39:  [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(fname,NT_MAKE_IM_NAME,strlen(NT_MAKE_IM_NAME)) ) {
data/nifticlib-2.0.0+git186-g84740c2/nifti2/nifti_tool.c:5596:39:  [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(fname,NT_MAKE_IM_NAME,strlen(NT_MAKE_IM_NAME)) ) {
data/nifticlib-2.0.0+git186-g84740c2/nifticdf/nifticdf.c:11050: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).
   unam = (char *)malloc(strlen(name)+1);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:1167: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).
  dup = (char *)malloc(strlen(str) + 1);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:1172: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).
                    (unsigned int)strlen(str)+1);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2599: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).
   len = (int)strlen(name);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2655:17:  [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).
     len = (int)strlen(fname);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2657: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).
     if (fileext_compare(fname + strlen(fname) - 3,".gz")==0) { return 1; }
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2690: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).
     basename[strlen(basename)-strlen(ext)] = '\0';  /* clear out extension */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2690:32:  [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).
     basename[strlen(basename)-strlen(ext)] = '\0';  /* clear out extension */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2788: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).
   hdrname = (char *)calloc(sizeof(char),strlen(basename)+8);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2851: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).
   imgname = (char *)calloc(sizeof(char),strlen(basename)+8);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2937:40:  [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).
   iname = (char *)calloc(sizeof(char),strlen(prefix)+8);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2954: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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),exthdr,4);   /* then convert img name to hdr */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:2954:39:  [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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),exthdr,4);   /* then convert img name to hdr */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3007:40:  [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).
   iname = (char *)calloc(sizeof(char),strlen(prefix)+8);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3024: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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),extimg,4);   /* then convert hdr name to img */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3024:39:  [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).
         memcpy(&(iname[strlen(iname)-strlen(ext)]),extimg,4);   /* then convert hdr name to img */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3225: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).
   len = strlen(known_ext);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3250: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).
   len = strlen(known_ext);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3269: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).
   for(c = 0; c < strlen(str); c++ ) {
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3285: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).
   for(c = 0; c < strlen(str); c++ ) {
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3302: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).
   for(c = 0; c < strlen(str); c++ )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:3314: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).
   for(c = 0; c < strlen(str); c++ )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:5947:14:  [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).
   ll = (int)strlen(str) ; if( ll == 0 ) return 0 ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6044: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).
   if( str == NULL || (lstr=(int)strlen(str)) == 0 ){      /* 0 length */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6115:17:  [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( buf+strlen(buf) , "  nifti_type = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6129:17:  [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( buf+strlen(buf) , "  header_filename = %s\n",ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6132:17:  [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( buf+strlen(buf) , "  image_filename = %s\n", ebuf); free(ebuf);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6134:17:  [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( buf+strlen(buf) , "  image_offset = '%d'\n" , nim->iname_offset );
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6136: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).
   sprintf(buf + strlen(buf), "  ndim = '%d'\n", nim->ndim);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6137: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).
   sprintf(buf + strlen(buf), "  nx = '%d'\n", nim->nx);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6139: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(buf + strlen(buf), "  ny = '%d'\n", nim->ny);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6141: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(buf + strlen(buf), "  nz = '%d'\n", nim->nz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6143: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(buf + strlen(buf), "  nt = '%d'\n", nim->nt);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6145: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(buf + strlen(buf), "  nu = '%d'\n", nim->nu);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6147: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(buf + strlen(buf), "  nv = '%d'\n", nim->nv);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6149: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(buf + strlen(buf), "  nw = '%d'\n", nim->nw);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6150: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).
   sprintf(buf + strlen(buf), "  dx = '%g'\n", nim->dx);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6152: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(buf + strlen(buf), "  dy = '%g'\n", nim->dy);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6154: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(buf + strlen(buf), "  dz = '%g'\n", nim->dz);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6156: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(buf + strlen(buf), "  dt = '%g'\n", nim->dt);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6158: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(buf + strlen(buf), "  du = '%g'\n", nim->du);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6160: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(buf + strlen(buf), "  dv = '%g'\n", nim->dv);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6162: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(buf + strlen(buf), "  dw = '%g'\n", nim->dw);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6164:17:  [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( buf+strlen(buf) , "  datatype = '%d'\n" , nim->datatype ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6165:17:  [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( buf+strlen(buf) , "  datatype_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6168:17:  [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( buf+strlen(buf) , "  nvox = '%u'\n" , (unsigned)nim->nvox ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6169:17:  [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( buf+strlen(buf) , "  nbyper = '%d'\n" , nim->nbyper ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6171:17:  [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( buf+strlen(buf) , "  byteorder = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6175: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).
     sprintf( buf+strlen(buf) , "  cal_min = '%g'\n", nim->cal_min ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6176: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).
     sprintf( buf+strlen(buf) , "  cal_max = '%g'\n", nim->cal_max ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6180: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).
     sprintf( buf+strlen(buf) , "  scl_slope = '%g'\n" , nim->scl_slope ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6181: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).
     sprintf( buf+strlen(buf) , "  scl_inter = '%g'\n" , nim->scl_inter ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6185: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).
     sprintf( buf+strlen(buf) , "  intent_code = '%d'\n", nim->intent_code ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6186: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).
     sprintf( buf+strlen(buf) , "  intent_code_name = '%s'\n" ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6188: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).
     sprintf( buf+strlen(buf) , "  intent_p1 = '%g'\n" , nim->intent_p1 ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6189: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).
     sprintf( buf+strlen(buf) , "  intent_p2 = '%g'\n" , nim->intent_p2 ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6190: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).
     sprintf( buf+strlen(buf) , "  intent_p3 = '%g'\n" , nim->intent_p3 ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6194: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).
       sprintf( buf+strlen(buf) , "  intent_name = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6200: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).
     sprintf( buf+strlen(buf) , "  toffset = '%g'\n",nim->toffset ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6203: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6209: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6215: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).
     sprintf( buf+strlen(buf) , "  freq_dim = '%d'\n",nim->freq_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6217: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).
     sprintf( buf+strlen(buf) , "  phase_dim = '%d'\n",nim->phase_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6219: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).
     sprintf( buf+strlen(buf) , "  slice_dim = '%d'\n",nim->slice_dim ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6221: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6226: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6230: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).
     sprintf( buf+strlen(buf) , "  slice_duration = '%g'\n",
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6235: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).
     sprintf( buf+strlen(buf) , "  descrip = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6241: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).
     sprintf( buf+strlen(buf) , "  aux_file = %s\n",ebuf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6248: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6262: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6273: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6286: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).
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6298: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6312: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).
     sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6325: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).
       sprintf( buf+strlen(buf) ,
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6334:17:  [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( buf+strlen(buf) , "  num_ext = '%d'\n", nim->num_ext ) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6336:17:  [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( buf+strlen(buf) , "/>\n" ) ;   /* XML-ish closer */
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6338: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).
   nbuf = (int)strlen(buf) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6381:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                       strncpy(nim->nam,rhs,ml), nim->nam[ml]='\0'
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6403:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
   ii = sscanf( str+spos , "%1023s%n" , lhs , &nn ) ; spos += nn ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6433:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
     ii = sscanf( str+spos , "%1023s%n" , lhs , &nn ) ; spos += nn ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:6451:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        ii = sscanf( str+spos , "%1023s%n" , rhs , &nn ) ; spos += nn ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_io.c:7272: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).
   slen = (int)strlen(str) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_test.c:81: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).
   ll = strlen(argv[iarg]) ;
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:704: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).
      len = strlen(argv[ac]);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:1806:56:  [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,"   command len         : %d\n",(int)strlen(opts->command));
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:1845:17:  [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).
         elen = strlen(ext);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:1866: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).
                             strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2053: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).
                             strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2583:33:  [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).
                                strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2698:33:  [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).
                                strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2757: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).
                             strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2861:17:  [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( !data || strlen(data) == 0 )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2976: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).
            nchars = strlen(data);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:2977:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dest, data, field->len);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:3304:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(fp->name, name, NT_FIELD_NAME_LEN-1);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:3863: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).
   len = strlen(dp);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:3946: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).
                          strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:4004: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).
                          strlen(opts->command), NIFTI_ECODE_COMMENT) )
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:4064:39:  [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(fname,NT_MAKE_IM_NAME,strlen(NT_MAKE_IM_NAME)) ) {
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:4103:39:  [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(fname,NT_MAKE_IM_NAME,strlen(NT_MAKE_IM_NAME)) ) {
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti1_tool.c:4146:39:  [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(fname,NT_MAKE_IM_NAME,strlen(NT_MAKE_IM_NAME)) ) {
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:86:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(reference_header.intent_name,"PHANTOM_DATA to be used for regression testing the nifti reader/writer",16);
data/nifticlib-2.0.0+git186-g84740c2/niftilib/nifti_tester001.c:87:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(reference_header.descrip,"This is a very long dialog here to use up more than 80 characters of space to test to see if the code is robust enough to deal appropriatly with very long and obnoxious lines.",80);
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:209: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).
        if ( (strlen(hdr_file) < 4) || (strlen(data_file) < 4) ) {
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:209:41:  [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(hdr_file) < 4) || (strlen(data_file) < 4) ) {
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:214: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).
        if ( (!strncmp(hdr_file+(strlen(hdr_file)-4), ".hdr",4)) &&
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:215: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).
             (!strncmp(data_file+(strlen(data_file)-4), ".img",4)) ) {
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:218:39:  [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 ( (!strncmp(hdr_file+(strlen(hdr_file)-4), ".nii",4)) &&
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:219:40:  [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(data_file+(strlen(data_file)-4), ".nii",4)) ) {
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:249:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(hdr.magic, "n+1\0", 4);
data/nifticlib-2.0.0+git186-g84740c2/real_easy/stand_alone_app/nifti1_read_write.c:251:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(hdr.magic, "ni1\0", 4);
data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.c:290:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fgetc(file->nzfptr);
data/nifticlib-2.0.0+git186-g84740c2/znzlib/znzlib.c:304: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).
    size = strlen(format) + 1000000;  /* overkill I hope */

ANALYSIS SUMMARY:

Hits = 806
Lines analyzed = 50750 in approximately 1.82 seconds (27946 lines/second)
Physical Source Lines of Code (SLOC) = 31357
Hits@level = [0] 1769 [1] 232 [2] 433 [3]   2 [4] 139 [5]   0
Hits@level+ = [0+] 2575 [1+] 806 [2+] 574 [3+] 141 [4+] 139 [5+]   0
Hits/KSLOC@level+ = [0+] 82.1188 [1+] 25.704 [2+] 18.3053 [3+] 4.4966 [4+] 4.43282 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.