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/orthanc-webviewer-2.6/Plugin/Cache/CacheIndex.h
Examining data/orthanc-webviewer-2.6/Plugin/Cache/CacheManager.cpp
Examining data/orthanc-webviewer-2.6/Plugin/Cache/CacheManager.h
Examining data/orthanc-webviewer-2.6/Plugin/Cache/CacheScheduler.cpp
Examining data/orthanc-webviewer-2.6/Plugin/Cache/CacheScheduler.h
Examining data/orthanc-webviewer-2.6/Plugin/Cache/ICacheFactory.h
Examining data/orthanc-webviewer-2.6/Plugin/Cache/IPrefetchPolicy.h
Examining data/orthanc-webviewer-2.6/Plugin/DecodedImageAdapter.cpp
Examining data/orthanc-webviewer-2.6/Plugin/DecodedImageAdapter.h
Examining data/orthanc-webviewer-2.6/Plugin/Plugin.cpp
Examining data/orthanc-webviewer-2.6/Plugin/SeriesInformationAdapter.cpp
Examining data/orthanc-webviewer-2.6/Plugin/SeriesInformationAdapter.h
Examining data/orthanc-webviewer-2.6/Plugin/ViewerPrefetchPolicy.cpp
Examining data/orthanc-webviewer-2.6/Plugin/ViewerPrefetchPolicy.h
Examining data/orthanc-webviewer-2.6/Plugin/ViewerToolbox.cpp
Examining data/orthanc-webviewer-2.6/Plugin/ViewerToolbox.h
Examining data/orthanc-webviewer-2.6/Resources/Orthanc/Sdk-0.9.5/orthanc/OrthancCPlugin.h
Examining data/orthanc-webviewer-2.6/UnitTestsSources/UnitTestsMain.cpp

FINAL RESULTS:

data/orthanc-webviewer-2.6/Plugin/Plugin.cpp:410:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(info, "Your version of Orthanc (%s) must be above %d.%d.%d to run this plugin",
data/orthanc-webviewer-2.6/Resources/Orthanc/Sdk-0.9.5/orthanc/OrthancCPlugin.h:1050:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      sscanf
data/orthanc-webviewer-2.6/Plugin/Plugin.cpp:409: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 info[1024];
data/orthanc-webviewer-2.6/Resources/Orthanc/Sdk-0.9.5/orthanc/OrthancCPlugin.h:2247:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    OrthancPluginStorageRead    read;
data/orthanc-webviewer-2.6/Resources/Orthanc/Sdk-0.9.5/orthanc/OrthancCPlugin.h:2269:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    OrthancPluginStorageRead    read,
data/orthanc-webviewer-2.6/Resources/Orthanc/Sdk-0.9.5/orthanc/OrthancCPlugin.h:2274:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    params.read = read;

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 8297 in approximately 0.19 seconds (42941 lines/second)
Physical Source Lines of Code (SLOC) = 4874
Hits@level = [0]   0 [1]   3 [2]   1 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   3 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 1.23102 [1+] 1.23102 [2+] 0.615511 [3+] 0.410341 [4+] 0.410341 [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.