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/osm-gps-map-1.1.0/examples/editable_track.c
Examining data/osm-gps-map-1.1.0/examples/mapviewer.c
Examining data/osm-gps-map-1.1.0/examples/polygon.c
Examining data/osm-gps-map-1.1.0/src/converter.c
Examining data/osm-gps-map-1.1.0/src/converter.h
Examining data/osm-gps-map-1.1.0/src/osd-utils.c
Examining data/osm-gps-map-1.1.0/src/osd-utils.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-compat.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-compat.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-image.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-image.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-layer.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-layer.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-osd.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-osd.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-point.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-point.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-polygon.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-polygon.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-source.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-source.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-track.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-track.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c
Examining data/osm-gps-map-1.1.0/src/osm-gps-map-widget.h
Examining data/osm-gps-map-1.1.0/src/osm-gps-map.h
Examining data/osm-gps-map-1.1.0/src/private.h

FINAL RESULTS:

data/osm-gps-map-1.1.0/src/osd-utils.c:89:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, text);
data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c:409:17:  [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(dst, src);
data/osm-gps-map-1.1.0/examples/mapviewer.c:76:34:  [3] (random) g_random_double_range:
  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.
                                 g_random_double_range(0,360));
data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c:531:43:  [3] (random) g_random_int_range:
  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.
                s = g_strdup_printf("%d", g_random_int_range(0,4));
data/osm-gps-map-1.1.0/src/osd-utils.c:110:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(p+trunc_at, "...");
data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c:482: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 location[22];
data/osm-gps-map-1.1.0/src/osd-utils.c:88: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).
    char *p = g_malloc(strlen(text)+4);  // space for "...\n"
data/osm-gps-map-1.1.0/src/osd-utils.c:97:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int trunc_at = strlen(text);
data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c:344: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).
    size_t size    = strlen(src) + 1;
data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c:345: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).
    size_t fromlen = strlen(from);
data/osm-gps-map-1.1.0/src/osm-gps-map-widget.c:346: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).
    size_t tolen   = strlen(to);

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 7608 in approximately 0.22 seconds (34078 lines/second)
Physical Source Lines of Code (SLOC) = 5141
Hits@level = [0]   3 [1]   5 [2]   2 [3]   2 [4]   2 [5]   0
Hits@level+ = [0+]  14 [1+]  11 [2+]   6 [3+]   4 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 2.72321 [1+] 2.13966 [2+] 1.16709 [3+] 0.778059 [4+] 0.389029 [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.