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/babl-0.1.82/babl/babl-cache.c
Examining data/babl-0.1.82/babl/babl-class.h
Examining data/babl-0.1.82/babl/babl-classes.h
Examining data/babl-0.1.82/babl/babl-component.c
Examining data/babl-0.1.82/babl/babl-component.h
Examining data/babl-0.1.82/babl/babl-conversion.c
Examining data/babl-0.1.82/babl/babl-conversion.h
Examining data/babl-0.1.82/babl/babl-core.c
Examining data/babl-0.1.82/babl/babl-cpuaccel.c
Examining data/babl-0.1.82/babl/babl-cpuaccel.h
Examining data/babl-0.1.82/babl/babl-db.c
Examining data/babl-0.1.82/babl/babl-db.h
Examining data/babl-0.1.82/babl/babl-extension.c
Examining data/babl-0.1.82/babl/babl-extension.h
Examining data/babl-0.1.82/babl/babl-fish-path.c
Examining data/babl-0.1.82/babl/babl-fish-reference.c
Examining data/babl-0.1.82/babl/babl-fish-simple.c
Examining data/babl-0.1.82/babl/babl-fish.c
Examining data/babl-0.1.82/babl/babl-fish.h
Examining data/babl-0.1.82/babl/babl-format.c
Examining data/babl-0.1.82/babl/babl-format.h
Examining data/babl-0.1.82/babl/babl-hash-table.c
Examining data/babl-0.1.82/babl/babl-hash-table.h
Examining data/babl-0.1.82/babl/babl-icc.c
Examining data/babl-0.1.82/babl/babl-ids.h
Examining data/babl-0.1.82/babl/babl-image.c
Examining data/babl-0.1.82/babl/babl-image.h
Examining data/babl-0.1.82/babl/babl-internal.c
Examining data/babl-0.1.82/babl/babl-internal.h
Examining data/babl-0.1.82/babl/babl-introspect.c
Examining data/babl-0.1.82/babl/babl-introspect.h
Examining data/babl-0.1.82/babl/babl-list.c
Examining data/babl-0.1.82/babl/babl-list.h
Examining data/babl-0.1.82/babl/babl-macros.h
Examining data/babl-0.1.82/babl/babl-main.h
Examining data/babl-0.1.82/babl/babl-matrix.h
Examining data/babl-0.1.82/babl/babl-memory.c
Examining data/babl-0.1.82/babl/babl-memory.h
Examining data/babl-0.1.82/babl/babl-model.c
Examining data/babl-0.1.82/babl/babl-model.h
Examining data/babl-0.1.82/babl/babl-mutex.c
Examining data/babl-0.1.82/babl/babl-mutex.h
Examining data/babl-0.1.82/babl/babl-palette.c
Examining data/babl-0.1.82/babl/babl-polynomial.c
Examining data/babl-0.1.82/babl/babl-polynomial.h
Examining data/babl-0.1.82/babl/babl-ref-pixels.c
Examining data/babl-0.1.82/babl/babl-ref-pixels.h
Examining data/babl-0.1.82/babl/babl-sampling.c
Examining data/babl-0.1.82/babl/babl-sampling.h
Examining data/babl-0.1.82/babl/babl-sanity.c
Examining data/babl-0.1.82/babl/babl-space.c
Examining data/babl-0.1.82/babl/babl-space.h
Examining data/babl-0.1.82/babl/babl-trc.c
Examining data/babl-0.1.82/babl/babl-trc.h
Examining data/babl-0.1.82/babl/babl-type.c
Examining data/babl-0.1.82/babl/babl-type.h
Examining data/babl-0.1.82/babl/babl-types.h
Examining data/babl-0.1.82/babl/babl-util.c
Examining data/babl-0.1.82/babl/babl-util.h
Examining data/babl-0.1.82/babl/babl-version.c
Examining data/babl-0.1.82/babl/babl.c
Examining data/babl-0.1.82/babl/babl.h
Examining data/babl-0.1.82/babl/base/babl-base.c
Examining data/babl-0.1.82/babl/base/babl-base.h
Examining data/babl-0.1.82/babl/base/formats.c
Examining data/babl-0.1.82/babl/base/model-cmyk.c
Examining data/babl-0.1.82/babl/base/model-gray.c
Examining data/babl-0.1.82/babl/base/model-rgb.c
Examining data/babl-0.1.82/babl/base/model-ycbcr.c
Examining data/babl-0.1.82/babl/base/pow-24.c
Examining data/babl-0.1.82/babl/base/pow-24.h
Examining data/babl-0.1.82/babl/base/type-float.c
Examining data/babl-0.1.82/babl/base/type-half.c
Examining data/babl-0.1.82/babl/base/type-u15.c
Examining data/babl-0.1.82/babl/base/type-u16.c
Examining data/babl-0.1.82/babl/base/type-u32.c
Examining data/babl-0.1.82/babl/base/type-u8.c
Examining data/babl-0.1.82/babl/base/util.h
Examining data/babl-0.1.82/babl/gettimeofday.c
Examining data/babl-0.1.82/babl/git-version.h
Examining data/babl-0.1.82/extensions/CIE.c
Examining data/babl-0.1.82/extensions/HCY.c
Examining data/babl-0.1.82/extensions/HSL.c
Examining data/babl-0.1.82/extensions/HSV.c
Examining data/babl-0.1.82/extensions/avx2-int8-tables.h
Examining data/babl-0.1.82/extensions/avx2-int8.c
Examining data/babl-0.1.82/extensions/cairo.c
Examining data/babl-0.1.82/extensions/double.c
Examining data/babl-0.1.82/extensions/fast-float.c
Examining data/babl-0.1.82/extensions/float.c
Examining data/babl-0.1.82/extensions/gegl-fixups.c
Examining data/babl-0.1.82/extensions/gggl-lies.c
Examining data/babl-0.1.82/extensions/gggl-table-lies.c
Examining data/babl-0.1.82/extensions/gggl-table.c
Examining data/babl-0.1.82/extensions/gggl.c
Examining data/babl-0.1.82/extensions/gimp-8bit.c
Examining data/babl-0.1.82/extensions/grey.c
Examining data/babl-0.1.82/extensions/half.c
Examining data/babl-0.1.82/extensions/naive-CMYK.c
Examining data/babl-0.1.82/extensions/simple.c
Examining data/babl-0.1.82/extensions/sse-half.c
Examining data/babl-0.1.82/extensions/sse2-float.c
Examining data/babl-0.1.82/extensions/sse2-int16.c
Examining data/babl-0.1.82/extensions/sse2-int8.c
Examining data/babl-0.1.82/extensions/sse4-int8.c
Examining data/babl-0.1.82/extensions/two-table-tables.h
Examining data/babl-0.1.82/extensions/two-table.c
Examining data/babl-0.1.82/extensions/u16.c
Examining data/babl-0.1.82/extensions/u32.c
Examining data/babl-0.1.82/extensions/util.h
Examining data/babl-0.1.82/extensions/ycbcr.c
Examining data/babl-0.1.82/tests/alpha_symmetric_transform.c
Examining data/babl-0.1.82/tests/babl_class_name.c
Examining data/babl-0.1.82/tests/cairo-RGB24.c
Examining data/babl-0.1.82/tests/cairo_cmyk_hack.c
Examining data/babl-0.1.82/tests/chromaticities.c
Examining data/babl-0.1.82/tests/cmyk.c
Examining data/babl-0.1.82/tests/concurrency-stress-test.c
Examining data/babl-0.1.82/tests/conversions.c
Examining data/babl-0.1.82/tests/extract.c
Examining data/babl-0.1.82/tests/float-to-8bit.c
Examining data/babl-0.1.82/tests/floatclamp.c
Examining data/babl-0.1.82/tests/format_with_space.c
Examining data/babl-0.1.82/tests/grayscale_to_rgb.c
Examining data/babl-0.1.82/tests/hsl.c
Examining data/babl-0.1.82/tests/hsva.c
Examining data/babl-0.1.82/tests/models.c
Examining data/babl-0.1.82/tests/n_components.c
Examining data/babl-0.1.82/tests/n_components_cast.c
Examining data/babl-0.1.82/tests/nop.c
Examining data/babl-0.1.82/tests/palette-concurrency-stress-test.c
Examining data/babl-0.1.82/tests/palette.c
Examining data/babl-0.1.82/tests/rgb_to_bgr.c
Examining data/babl-0.1.82/tests/rgb_to_ycbcr.c
Examining data/babl-0.1.82/tests/sanity.c
Examining data/babl-0.1.82/tests/srgb_to_lab_u8.c
Examining data/babl-0.1.82/tests/transparent.c
Examining data/babl-0.1.82/tests/types.c
Examining data/babl-0.1.82/tools/babl-benchmark.c
Examining data/babl-0.1.82/tools/babl-gen-test-pixels.c
Examining data/babl-0.1.82/tools/babl-html-dump.c
Examining data/babl-0.1.82/tools/babl-icc-dump.c
Examining data/babl-0.1.82/tools/babl-icc-rewrite.c
Examining data/babl-0.1.82/tools/babl-verify.c
Examining data/babl-0.1.82/tools/babl_fish_path_fitness.c
Examining data/babl-0.1.82/tools/conversions.c
Examining data/babl-0.1.82/tools/formats.c
Examining data/babl-0.1.82/tools/introspect.c
Examining data/babl-0.1.82/tools/trc-validator.c

FINAL RESULTS:

data/babl-0.1.82/babl/babl-cache.c:315:15:  [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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-cache.c:333:15:  [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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-component.c:39: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-conversion.c:154: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-extension.c:66: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 (babl->instance.name, path);
data/babl-0.1.82/babl/babl-fish-path.c:592: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-fish-reference.c:141: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-fish-reference.c:1222:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (src_name, "%s float", babl_get_name((void*)babl->fish.source->format.model));
data/babl-0.1.82/babl/babl-fish-reference.c:1231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (dst_name, "%s float", babl_get_name((void*)babl->fish.destination->format.model));
data/babl-0.1.82/babl/babl-fish-simple.c:50: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-fish.c:324:21:  [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 (fish->instance.name, name);
data/babl-0.1.82/babl/babl-format.c:102: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-format.c:477:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (new_name, "%s-%s", name, babl_get_name ((Babl*)space));
data/babl-0.1.82/babl/babl-internal.c:70:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  return system (buf);
data/babl-0.1.82/babl/babl-internal.h:152:3:  [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.
  vfprintf (stderr, fmt, varg);
data/babl-0.1.82/babl/babl-memory.c:299: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 (ret, s);
data/babl-0.1.82/babl/babl-memory.c:331: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 (ret, src);
data/babl-0.1.82/babl/babl-memory.c:347: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 (&ret[dst_len], src);
data/babl-0.1.82/babl/babl-model.c:80: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl-type.c:55: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 (babl->instance.name, name);
data/babl-0.1.82/babl/babl.c:106:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (filename_tmp, filename);
data/babl-0.1.82/babl/babl.c:108:15:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
              strcat (filename_tmp, "lib" BABL_DIR_SEPARATOR BABL_LIBRARY);
data/babl-0.1.82/babl/babl.c:116: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 (ret, BABL_PATH);
data/babl-0.1.82/babl/babl.c:122: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 (ret_tmp, ret);
data/babl-0.1.82/tools/babl-benchmark.c:51: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 (ret, block[8]);
data/babl-0.1.82/tools/babl-benchmark.c:56:9:  [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 (ret, block[(int)((1.0-miss) * 8.999)]);
data/babl-0.1.82/tools/babl-benchmark.c:58:9:  [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 (ret, block[0]);
data/babl-0.1.82/tools/babl-gen-test-pixels.c:66:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-gen-test-pixels.c:76:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-gen-test-pixels.c:86:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-gen-test-pixels.c:99:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-gen-test-pixels.c:108:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-gen-test-pixels.c:139:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-gen-test-pixels.c:162:7:  [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 (BABL_PIXEL_FMT_STR ",\n",
data/babl-0.1.82/tools/babl-html-dump.c:83: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 (normalized_buf, str);
data/babl-0.1.82/tools/babl_fish_path_fitness.c:151:5:  [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 (SELF);
data/babl-0.1.82/tools/babl_fish_path_fitness.c:196:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf (title, "%s to %s %i steps %.3f mpix/s ", babl_get_name (source), babl_get_name (destination), steps, pixels_per_second/1000.0);
data/babl-0.1.82/tools/babl_fish_path_fitness.c:203:11:  [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 (utf8_bar[babl_list_size (temp->fish_path.conversion_list)], title, style);
data/babl-0.1.82/tools/babl_fish_path_fitness.c:211:11:  [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 (EMPTY, title, style);
data/babl-0.1.82/babl/babl-cache.c:85:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("XDG_CACHE_HOME"))
data/babl-0.1.82/babl/babl-cache.c:86:59:  [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.
    snprintf (path, sizeof (path), "%s/babl/babl-fishes", getenv("XDG_CACHE_HOME"));
data/babl-0.1.82/babl/babl-cache.c:87:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  else if (getenv ("HOME"))
data/babl-0.1.82/babl/babl-cache.c:88:66:  [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.
    snprintf (path, sizeof (path), "%s/.cache/babl/babl-fishes", getenv("HOME"));
data/babl-0.1.82/babl/babl-cache.c:94:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  else if (getenv ("TEMP"))
data/babl-0.1.82/babl/babl-cache.c:95:59:  [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.
    snprintf (path, sizeof (path), "%s\\babl-fishes.txt", getenv("TEMP"));
data/babl-0.1.82/babl/babl-cache.c:244:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("BABL_DEBUG_CONVERSIONS"))
data/babl-0.1.82/babl/babl-extension.c:175:25:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
#define dlopen(a, b)    LoadLibrary (a)
data/babl-0.1.82/babl/babl-extension.c:294:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            home = getenv ("HOME");
data/babl-0.1.82/babl/babl-fish-path.c:114:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv ("BABL_TOLERANCE");
data/babl-0.1.82/babl/babl-fish-path.c:120:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv ("BABL_DEBUG_CONVERSIONS");
data/babl-0.1.82/babl/babl-fish-path.c:126:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv ("BABL_INSTRUMENT");
data/babl-0.1.82/babl/babl-fish-path.c:144:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv ("BABL_PATH_LENGTH");
data/babl-0.1.82/babl/babl-fish-path.c:515:24:  [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.
     const char *val = getenv ("BABL_DEBUG_MISSING");
data/babl-0.1.82/babl/babl-fish-reference.c:1428:29:  [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.
    allow_float_reference = getenv ("BABL_REFERENCE_NOFLOAT") ? 0 : 1;
data/babl-0.1.82/babl/babl-mutex.c:51:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (mutex);
data/babl-0.1.82/babl/babl-mutex.c:73:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (mutex);
data/babl-0.1.82/babl/babl.c:67:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ret = getenv ("BABL_PATH");
data/babl-0.1.82/tools/babl-benchmark.c:24:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand
data/babl-0.1.82/tools/babl-benchmark.c:24:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand
data/babl-0.1.82/tools/babl-benchmark.c:25:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random  rand
data/babl-0.1.82/tools/babl-benchmark.c:110:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   src_data[i] = random();
data/babl-0.1.82/tools/babl-gen-test-pixels.c:24:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand
data/babl-0.1.82/tools/babl-gen-test-pixels.c:24:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand
data/babl-0.1.82/tools/babl-gen-test-pixels.c:25:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random  rand
data/babl-0.1.82/tools/babl-gen-test-pixels.c:43:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (double) random () / RAND_MAX;
data/babl-0.1.82/tools/babl-gen-test-pixels.c:57:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom (20050728);
data/babl-0.1.82/tools/babl-gen-test-pixels.c:130:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom (20050728);
data/babl-0.1.82/tools/babl-gen-test-pixels.c:153:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom (20050728);
data/babl-0.1.82/tools/babl_fish_path_fitness.c:10:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand
data/babl-0.1.82/tools/babl_fish_path_fitness.c:10:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand
data/babl-0.1.82/tools/babl_fish_path_fitness.c:11:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random  rand
data/babl-0.1.82/tools/babl_fish_path_fitness.c:68:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (double) random () / RAND_MAX;
data/babl-0.1.82/tools/babl_fish_path_fitness.c:84:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom (111);
data/babl-0.1.82/babl/babl-cache.c:38: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 copy[4096];
data/babl-0.1.82/babl/babl-cache.c:65: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 copy[4096];
data/babl-0.1.82/babl/babl-cache.c:80: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 path[4096];
data/babl-0.1.82/babl/babl-cache.c:91: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 win32path[4096];
data/babl-0.1.82/babl/babl-cache.c:168: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 buf[2048];
data/babl-0.1.82/babl/babl-cache.c:191:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  dbfile  = fopen (tmpp, "w");
data/babl-0.1.82/babl/babl-cache.c:208: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 tmp[8192];
data/babl-0.1.82/babl/babl-cache.c:289:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[4096];
data/babl-0.1.82/babl/babl-conversion.c: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.
  const char  *src_data[BABL_MAX_COMPONENTS];
data/babl-0.1.82/babl/babl-conversion.c:59: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  *dst_data[BABL_MAX_COMPONENTS];
data/babl-0.1.82/babl/babl-conversion.c:62: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 (src_data, source->data, sizeof (void *) * source->components);
data/babl-0.1.82/babl/babl-conversion.c:63:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dst_data, destination->data, sizeof (void *) * destination->components);
data/babl-0.1.82/babl/babl-conversion.c:249:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[512] = "";
data/babl-0.1.82/babl/babl-core.c:35: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 (dst, src, n / 8);
data/babl-0.1.82/babl/babl-core.c:86: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 (dst, src, n * sizeof (double) * 4);
data/babl-0.1.82/babl/babl-extension.c:301:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tmp[2] = "?";
data/babl-0.1.82/babl/babl-fish-path.c:146:18:  [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).
    max_length = atoi (env);
data/babl-0.1.82/babl/babl-fish-path.c:510: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 name[BABL_MAX_NAME_LEN];
data/babl-0.1.82/babl/babl-fish-path.c:719: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 (destination, source, n * babl->fish.source->format.bytes_per_pixel);
data/babl-0.1.82/babl/babl-fish-reference.c:54:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __thread char buf[1024];
data/babl-0.1.82/babl/babl-fish-reference.c:1217: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 dst_name[256];
data/babl-0.1.82/babl/babl-fish-reference.c:1221: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 src_name[256];
data/babl-0.1.82/babl/babl-fish-reference.c:1397: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 (destination, source, n * babl->fish.source->format.bytes_per_pixel);
data/babl-0.1.82/babl/babl-format.c:111: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 (babl->format.component, component, sizeof (BablComponent *) * components);
data/babl-0.1.82/babl/babl-format.c:112: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 (babl->format.type, type, sizeof (BablType *) * components);
data/babl-0.1.82/babl/babl-format.c:113: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 (babl->format.sampling, sampling, sizeof (BablSampling *) * components);
data/babl-0.1.82/babl/babl-format.c:142: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 new_name[256];
data/babl-0.1.82/babl/babl-format.c:168: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[512] = "";
data/babl-0.1.82/babl/babl-format.c:240: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[512];
data/babl-0.1.82/babl/babl-icc.c:67: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 str[5];
data/babl-0.1.82/babl/babl-icc.c:585: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 icc[65536];
data/babl-0.1.82/babl/babl-icc.c:670:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[128]="CC0/public domain";
data/babl-0.1.82/babl/babl-icc.c:680:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[128]="babl";
data/babl-0.1.82/babl/babl-icc.c:701: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 (ret, icc, length);
data/babl-0.1.82/babl/babl-icc.c:715: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 icc[65536];
data/babl-0.1.82/babl/babl-icc.c:767:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[128]="CC0/public domain";
data/babl-0.1.82/babl/babl-icc.c:777:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[128]="babl";
data/babl-0.1.82/babl/babl-icc.c:797: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 (ret, icc, length);
data/babl-0.1.82/babl/babl-icc.c:865: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 icountry[3]="  ";
data/babl-0.1.82/babl/babl-icc.c:866: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 ilang[3]="  ";
data/babl-0.1.82/babl/babl-icc.c:976: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 (ret->space.icc_profile, icc_data, icc_length);
data/babl-0.1.82/babl/babl-icc.c:1126: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 (ret->space.icc_profile, icc_data, icc_length);
data/babl-0.1.82/babl/babl-icc.c:1196: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 (ret->space.icc_profile, icc_data, icc_length);
data/babl-0.1.82/babl/babl-icc.c:1246: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 (ret->space.icc_profile, icc_data, icc_length);
data/babl-0.1.82/babl/babl-icc.c:1341: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 tag[5];
data/babl-0.1.82/babl/babl-icc.c:1347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tag[4096]="NYI";
data/babl-0.1.82/babl/babl-image.c:73: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 (babl->image.component, component, components * sizeof (void *));
data/babl-0.1.82/babl/babl-image.c:74: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 (babl->image.type, type, components * sizeof (void *));
data/babl-0.1.82/babl/babl-image.c:75: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 (babl->image.data, data, components * sizeof (void *));
data/babl-0.1.82/babl/babl-image.c:76: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 (babl->image.pitch, pitch, components * sizeof (int));
data/babl-0.1.82/babl/babl-image.c:77: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 (babl->image.stride, stride, components * sizeof (int));
data/babl-0.1.82/babl/babl-image.c:94: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          *data      [BABL_MAX_COMPONENTS];
data/babl-0.1.82/babl/babl-image.c:138: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 (component, format->format.component, sizeof (Babl *) * components);
data/babl-0.1.82/babl/babl-image.c:139: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 (sampling, format->format.sampling, sizeof (Babl *) * components);
data/babl-0.1.82/babl/babl-image.c:140: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 (type, format->format.type, sizeof (Babl *) * components);
data/babl-0.1.82/babl/babl-image.c:162: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 (component, model->component, sizeof (Babl *) * components);
data/babl-0.1.82/babl/babl-image.c: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          *data      [BABL_MAX_COMPONENTS];
data/babl-0.1.82/babl/babl-internal.c:66: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[512];
data/babl-0.1.82/babl/babl-internal.h:330:12:  [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).
  result = atoi (str);
data/babl-0.1.82/babl/babl-list.c:108: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 (to->items, from->items, from->count * sizeof (BablInstance *));
data/babl-0.1.82/babl/babl-memory.c:72: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 buf[128];
data/babl-0.1.82/babl/babl-memory.c:156: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 (ret, ptr, BAI (ptr)->size);
data/babl-0.1.82/babl/babl-memory.c:240: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 (ret, ptr, babl_sizeof (ptr));
data/babl-0.1.82/babl/babl-model.c:81: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 (babl->model.component, component, sizeof (BablComponent *) * components);
data/babl-0.1.82/babl/babl-model.c:470: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 (ret, model, sizeof (BablModel));
data/babl-0.1.82/babl/babl-palette.c:65:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char defpal_data[4*16] =
data/babl-0.1.82/babl/babl-palette.c:316: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 (pal->data, data, bpp * count);
data/babl-0.1.82/babl/babl-palette.c:402:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char src[4];
data/babl-0.1.82/babl/babl-palette.c:449:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char src[4];
data/babl-0.1.82/babl/babl-palette.c:497: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 (dst, palpx, sizeof(double)*4);
data/babl-0.1.82/babl/babl-palette.c:528: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 (dst, palpx, sizeof(double)*4);
data/babl-0.1.82/babl/babl-palette.c:555:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char src[4];
data/babl-0.1.82/babl/babl-palette.c:602:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char src[4];
data/babl-0.1.82/babl/babl-palette.c:695: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 (dst, palpx, sizeof(char)*4);
data/babl-0.1.82/babl/babl-palette.c:724: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 (dst, palpx, sizeof(char)*4);
data/babl-0.1.82/babl/babl-palette.c:794: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  cname[64];
data/babl-0.1.82/babl/babl-polynomial.c:176: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 (poly->coeff, rpoly->coeff, (rpoly->degree + 1) * sizeof (double));
data/babl-0.1.82/babl/babl-sampling.h:29: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             name[4];
data/babl-0.1.82/babl/babl-space.c:162: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 (&best_j[0], &j[0], sizeof (best_j));
data/babl-0.1.82/babl/babl-space.c:206: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 (space->RGBtoXYZ, mat, sizeof (mat));
data/babl-0.1.82/babl/babl-space.c:210: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 (space->XYZtoRGB, inv_mat, sizeof (mat));
data/babl-0.1.82/babl/babl-space.c:258: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 (&space.xw,
data/babl-0.1.82/babl/babl-space.c:894: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 (dst_char, src_char, samples * 4 * 2);
data/babl-0.1.82/babl/babl-space.c:904: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 (dst_char, src_char, samples * 4);
data/babl-0.1.82/babl/babl-space.h:120: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             name[512]; // XXX: allocate this dynamically instead -
data/babl-0.1.82/babl/babl-trc.c:403: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 (trc_db[i].lut, lut, sizeof (float) * n_lut);
data/babl-0.1.82/babl/babl-trc.c:556: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 name[128];
data/babl-0.1.82/babl/babl-trc.c:584: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 name[128];
data/babl-0.1.82/babl/babl-trc.c:600: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 name[32];
data/babl-0.1.82/babl/babl-trc.h:69: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             name[128];
data/babl-0.1.82/babl/babl-util.c:114:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (path,"rb");
data/babl-0.1.82/babl/babl.c:76:7:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      wchar_t w_filename[MAX_PATH];
data/babl-0.1.82/babl/base/type-float.c:71: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 (dst, src, n / 4);
data/babl-0.1.82/extensions/HCY.c:55:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
rgba_to_hcy_step (char *src,
data/babl-0.1.82/extensions/HCY.c:56:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *dst,
data/babl-0.1.82/extensions/HCY.c:60:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
hcy_to_rgba_step (char *src,
data/babl-0.1.82/extensions/HCY.c:61:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *dst,
data/babl-0.1.82/extensions/HCY.c:173:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
rgba_to_hcy_step (char *src,
data/babl-0.1.82/extensions/HCY.c:174:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *dst,
data/babl-0.1.82/extensions/HCY.c:220:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
hcy_to_rgba_step (char *src,
data/babl-0.1.82/extensions/HCY.c:221:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *dst,
data/babl-0.1.82/extensions/gegl-fixups.c:56:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char table_F_8[1 << 17];
data/babl-0.1.82/extensions/gegl-fixups.c:57:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char table_F_8g[1 << 17];
data/babl-0.1.82/extensions/gggl-lies.c:184:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[0] = div_257 (((unsigned short *) src)[0]);
data/babl-0.1.82/extensions/gggl-lies.c:185:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[1] = div_257 (((unsigned short *) src)[1]);
data/babl-0.1.82/extensions/gggl-lies.c:186:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[2] = div_257 (((unsigned short *) src)[2]);
data/babl-0.1.82/extensions/gggl-lies.c:187:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[3] = div_257 (((unsigned short *) src)[3]);
data/babl-0.1.82/extensions/gggl-table-lies.c:59:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char  table_F_8[1 << 16];
data/babl-0.1.82/extensions/gggl-table.c:51:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char  table_F_8[1 << 16];
data/babl-0.1.82/extensions/gggl.c:205:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[0] = div_257 (((unsigned short *) src)[0]);
data/babl-0.1.82/extensions/gggl.c:206:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[1] = div_257 (((unsigned short *) src)[1]);
data/babl-0.1.82/extensions/gggl.c:207:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[2] = div_257 (((unsigned short *) src)[2]);
data/babl-0.1.82/extensions/gggl.c:208:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) dst)[3] = div_257 (((unsigned short *) src)[3]);
data/babl-0.1.82/extensions/half.c:178:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char half_float_shift_table[512] = {
data/babl-0.1.82/extensions/two-table-tables.h:2:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char linear_to_gamma[65536] =
data/babl-0.1.82/tests/cairo-RGB24.c:35:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char tmp[4] = { 0, /*0xb1, 0xba, 0x00*/ };
data/babl-0.1.82/tests/cairo-RGB24.c:66:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char output[4] = { 0x00, /*0xb1, 0xba, 0x00*/ };
data/babl-0.1.82/tests/cairo-RGB24.c:67:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char input[4] = { i, i, i, 17 };
data/babl-0.1.82/tests/cairo_cmyk_hack.c:26:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char source_buf [PIXELS * 5] =
data/babl-0.1.82/tests/cairo_cmyk_hack.c:34:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char cmk_buf [PIXELS * 4];
data/babl-0.1.82/tests/cairo_cmyk_hack.c:35:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char cyk_buf [PIXELS * 4];
data/babl-0.1.82/tests/cairo_cmyk_hack.c:36:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char dest_buf [PIXELS * 5];
data/babl-0.1.82/tests/chromaticities.c:26:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char source_buf [PIXELS * 3] =
data/babl-0.1.82/tests/chromaticities.c:34:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char reference_buf [PIXELS * 3] =
data/babl-0.1.82/tests/chromaticities.c:42:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char destination_buf [PIXELS * 3];
data/babl-0.1.82/tests/n_components.c:49:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char reference_buf [PIXELS * COMPONENTS] =
data/babl-0.1.82/tests/n_components.c:70:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char destination_buf [PIXELS * COMPONENTS];
data/babl-0.1.82/tests/palette-concurrency-stress-test.c:39:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  src[4 * N_PIXELS];
data/babl-0.1.82/tests/palette-concurrency-stress-test.c:40:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  dest[N_PIXELS];
data/babl-0.1.82/tests/palette-concurrency-stress-test.c:60:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  colors[4 * N_THREADS];
data/babl-0.1.82/tests/rgb_to_bgr.c:27:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char source_buf [PIXELS * 3] =
data/babl-0.1.82/tests/rgb_to_bgr.c:32:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char reference_buf [PIXELS * 3] =
data/babl-0.1.82/tests/rgb_to_bgr.c:37:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char destination_buf [PIXELS * 3];
data/babl-0.1.82/tests/srgb_to_lab_u8.c:26:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char source_buf [PIXELS * 3] =
data/babl-0.1.82/tests/srgb_to_lab_u8.c:34:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char reference_buf [PIXELS * 3] =
data/babl-0.1.82/tests/srgb_to_lab_u8.c:42:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char destination_buf [PIXELS * 3];
data/babl-0.1.82/tools/babl-benchmark.c:41:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char ret[200]="";
data/babl-0.1.82/tools/babl-benchmark.c:42: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 *block[9]= {" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉","█"};
data/babl-0.1.82/tools/babl-benchmark.c:190:29:  [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).
  if (argv[1]) ITERATIONS = atoi (argv[1]);
data/babl-0.1.82/tools/babl-html-dump.c:76:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char normalized_buf[512];
data/babl-0.1.82/tools/babl-icc-dump.c:200:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tag_signature[5];
data/babl-0.1.82/tools/babl-icc-dump.c:256: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[4]={load_u8 (icc, offset + 3),
data/babl-0.1.82/tools/babl-icc-dump.c:293:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tag_signature[5];
data/babl-0.1.82/tools/babl-icc-dump.c:327: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 profile_class[5];
data/babl-0.1.82/tools/babl-icc-dump.c:328: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 color_space[5];
data/babl-0.1.82/tools/babl-icc-dump.c:329: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 pcs_space[5];
data/babl-0.1.82/tools/babl-icc-dump.c:386:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tag_signature[5];
data/babl-0.1.82/tools/babl-icc-dump.c:397:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tag_signature[5];
data/babl-0.1.82/tools/babl-icc-dump.c:661:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (path,"rb");
data/babl-0.1.82/tools/babl-icc-rewrite.c:159:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (path,"rb");
data/babl-0.1.82/tools/babl-icc-rewrite.c:192: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).
  FILE *fp = fopen (path, "wb");
data/babl-0.1.82/tools/babl-verify.c:21:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (path,"rb");
data/babl-0.1.82/tools/babl_fish_path_fitness.c:61:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char  test_pixels_in[NUM_TEST_PIXELS * 6 * 8];
data/babl-0.1.82/tools/babl_fish_path_fitness.c:62:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char  test_pixels_out[NUM_TEST_PIXELS * 6 * 8];
data/babl-0.1.82/tools/babl_fish_path_fitness.c:157:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char style[128] = "";
data/babl-0.1.82/tools/babl_fish_path_fitness.c:158:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char title[1024] = "";
data/babl-0.1.82/tools/babl_fish_path_fitness.c:180:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (style, "color:rgb(%i, 0, 0);", (int)(colval * 5 * 255));
data/babl-0.1.82/tools/babl_fish_path_fitness.c:184:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (style, "color:rgb(255, %i, 0);", (int)((colval-0.2) * 5 * 255));
data/babl-0.1.82/tools/babl_fish_path_fitness.c:188:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (style, "color:rgb(255, 255, %i);", (int)((colval-0.4) * 1.666 * 255));
data/babl-0.1.82/babl/babl-cache.c:39:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (copy, path, 4096);
data/babl-0.1.82/babl/babl-cache.c:66:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (copy, path, 4096);
data/babl-0.1.82/babl/babl-cache.c:82:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (path, FALLBACK_CACHE_PATH, 4096);
data/babl-0.1.82/babl/babl-cache.c:121:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:121: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).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:124:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:124: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).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:129: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).
    n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:129: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).
    n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:133:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:133: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).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:138: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).
    n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:138: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).
    n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:142:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:142: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).
  n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:150:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:150: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).
      n -= strlen (d);d += strlen (d);
data/babl-0.1.82/babl/babl-cache.c:309:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              babl = babl_calloc (1, sizeof (BablFish) + strlen (name) + 1);
data/babl-0.1.82/babl/babl-cache.c:327: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).
                                  strlen (name) + 1);
data/babl-0.1.82/babl/babl-component.c:37:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  babl                = babl_malloc (sizeof (BablComponent) + strlen (name) + 1);
data/babl-0.1.82/babl/babl-conversion.c:152:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  babl                = babl_malloc (sizeof (BablConversion) + strlen (name) + 1);
data/babl-0.1.82/babl/babl-extension.c:63:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  babl                = babl_malloc (sizeof (BablExtension) + strlen (path) + 1);
data/babl-0.1.82/babl/babl-fish-path.c:586:23:  [1] (buffer) strlen:
  Does not handle 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 (name) + 1);
data/babl-0.1.82/babl/babl-fish-reference.c:137:23:  [1] (buffer) strlen:
  Does not handle 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 (name) + 1);
data/babl-0.1.82/babl/babl-fish-simple.c:46:23:  [1] (buffer) strlen:
  Does not handle 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 (name) + 1);
data/babl-0.1.82/babl/babl-fish.c:319:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    Babl *fish = babl_calloc (1, sizeof (BablFish) + strlen (name) + 1);
data/babl-0.1.82/babl/babl-format.c:84:23:  [1] (buffer) strlen:
  Does not handle 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 (name) + 1 +
data/babl-0.1.82/babl/babl-format.c:180:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  p += strlen (model->instance.name) + 1;
data/babl-0.1.82/babl/babl-format.c:181:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  left -= strlen (model->instance.name) + 1;
data/babl-0.1.82/babl/babl-format.c:225: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).
      p += strlen ((*component)->instance.name) +
data/babl-0.1.82/babl/babl-format.c:226: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).
           strlen ((*type)->instance.name) + strlen ("( as ) ");
data/babl-0.1.82/babl/babl-format.c:226:46:  [1] (buffer) strlen:
  Does not handle 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 ((*type)->instance.name) + strlen ("( as ) ");
data/babl-0.1.82/babl/babl-format.c:227: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).
      left -= strlen ((*component)->instance.name) +
data/babl-0.1.82/babl/babl-format.c:228: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).
              strlen ((*type)->instance.name) + strlen ("( as ) ");
data/babl-0.1.82/babl/babl-format.c:228:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              strlen ((*type)->instance.name) + strlen ("( as ) ");
data/babl-0.1.82/babl/babl-format.c:475: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).
    char *new_name = babl_malloc (strlen (name) +
data/babl-0.1.82/babl/babl-format.c:476: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).
                                  strlen (babl_get_name ((Babl*)space)) + 1);
data/babl-0.1.82/babl/babl-icc.c:673:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      icc_allocate_tag(state, "cprt", 8 + strlen (copyright) + 1);
data/babl-0.1.82/babl/babl-icc.c:683:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      icc_allocate_tag(state, "desc", 90 + strlen (description) + 0);
data/babl-0.1.82/babl/babl-icc.c:686: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).
      icc_write (u32, state->o + 8, strlen(description) + 1);
data/babl-0.1.82/babl/babl-icc.c:770:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      icc_allocate_tag(state, "cprt", 8 + strlen (copyright) + 1);
data/babl-0.1.82/babl/babl-icc.c:780:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      icc_allocate_tag(state, "desc", 90 + strlen (description) + 0);
data/babl-0.1.82/babl/babl-icc.c:783: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).
      icc_write (u32, state->o + 8, strlen(description) + 1);
data/babl-0.1.82/babl/babl-memory.c:296: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).
  ret = babl_malloc (strlen (s) + 1);
data/babl-0.1.82/babl/babl-memory.c:327: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).
  src_len = strlen (src);
data/babl-0.1.82/babl/babl-memory.c:335: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).
  dst_len = strlen (dest);
data/babl-0.1.82/babl/babl-model.c:67:23:  [1] (buffer) strlen:
  Does not handle 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 (name) + 1);
data/babl-0.1.82/babl/babl-trc.c:573: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).
  while (name[strlen(name)-1]=='0')
data/babl-0.1.82/babl/babl-trc.c:574: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).
    name[strlen(name)-1]='\0';
data/babl-0.1.82/babl/babl-trc.c:591: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).
  while (name[strlen(name)-1]=='0')
data/babl-0.1.82/babl/babl-trc.c:592: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).
    name[strlen(name)-1]='\0';
data/babl-0.1.82/babl/babl-trc.c:608: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).
  while (name[strlen(name)-1]=='0')
data/babl-0.1.82/babl/babl-trc.c:609: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).
    name[strlen(name)-1]='\0';
data/babl-0.1.82/babl/babl-type.c:49:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  babl                 = babl_malloc (sizeof (BablType) + strlen (name) + 1);
data/babl-0.1.82/babl/babl.c:104:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              filename_tmp = babl_malloc (sizeof (char) * (strlen (filename) +
data/babl-0.1.82/babl/babl.c:105: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 (BABL_DIR_SEPARATOR BABL_LIBRARY) + 4));
data/babl-0.1.82/babl/babl.c:115:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = babl_malloc (sizeof (char) * (strlen (BABL_PATH) + 1));
data/babl-0.1.82/babl/babl.c:121:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char* ret_tmp = babl_malloc (sizeof (char) * (strlen (ret) + 1));
data/babl-0.1.82/tools/babl-icc-rewrite.c:194: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).
    length = strlen (data);

ANALYSIS SUMMARY:

Hits = 291
Lines analyzed = 53968 in approximately 1.94 seconds (27834 lines/second)
Physical Source Lines of Code (SLOC) = 43620
Hits@level = [0] 263 [1]  59 [2] 159 [3]  34 [4]  39 [5]   0
Hits@level+ = [0+] 554 [1+] 291 [2+] 232 [3+]  73 [4+]  39 [5+]   0
Hits/KSLOC@level+ = [0+] 12.7006 [1+] 6.67125 [2+] 5.31866 [3+] 1.67354 [4+] 0.894085 [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.