snappy-1.2.2-1.fc43

List of Findings

Error: COMPILER_WARNING: [#def1]
snappy-1.2.2/snappy-internal.h:261:22: warning[-Warray-bounds=]: array subscript 64 is outside array bounds of ‘const char[11]’
#  261 |   SNAPPY_PREFETCH(s1 + 64);
#      |                   ~~~^~~~
#  259|       }
#  260|     }
#  261|->   SNAPPY_PREFETCH(s1 + 64);
#  262|     SNAPPY_PREFETCH(s2 + 64);
#  263|   

Error: COMPILER_WARNING: [#def2]
snappy-1.2.2/snappy-internal.h:261:22: warning[-Warray-bounds=]: array subscript 64 is outside array bounds of ‘const char[15]’
#  261 |   SNAPPY_PREFETCH(s1 + 64);
#      |                   ~~~^~~~
#  259|       }
#  260|     }
#  261|->   SNAPPY_PREFETCH(s1 + 64);
#  262|     SNAPPY_PREFETCH(s2 + 64);
#  263|   

Error: COMPILER_WARNING: [#def3]
snappy-1.2.2/snappy-internal.h:261:22: warning[-Warray-bounds=]: array subscript 64 is outside array bounds of ‘const char[17]’
#  261 |   SNAPPY_PREFETCH(s1 + 64);
#      |                   ~~~^~~~
#  259|       }
#  260|     }
#  261|->   SNAPPY_PREFETCH(s1 + 64);
#  262|     SNAPPY_PREFETCH(s2 + 64);
#  263|   

Error: COMPILER_WARNING: [#def4]
snappy-1.2.2/snappy-internal.h:261:22: warning[-Warray-bounds=]: array subscript 64 is outside array bounds of ‘const char[19]’
#  261 |   SNAPPY_PREFETCH(s1 + 64);
#      |                   ~~~^~~~
#  259|       }
#  260|     }
#  261|->   SNAPPY_PREFETCH(s1 + 64);
#  262|     SNAPPY_PREFETCH(s2 + 64);
#  263|   

Error: COMPILER_WARNING: [#def5]
snappy-1.2.2/snappy-internal.h:262:22: warning[-Warray-bounds=]: array subscript 64 is outside array bounds of ‘const char[11]’
#  262 |   SNAPPY_PREFETCH(s2 + 64);
#      |                   ~~~^~~~
#  260|     }
#  261|     SNAPPY_PREFETCH(s1 + 64);
#  262|->   SNAPPY_PREFETCH(s2 + 64);
#  263|   
#  264|     // Find out how long the match is. We loop over the data 64 bits at a

Error: COMPILER_WARNING: [#def6]
snappy-1.2.2/snappy-internal.h:262:22: warning[-Warray-bounds=]: array subscript 64 is outside array bounds of ‘const char[15]’
#  262 |   SNAPPY_PREFETCH(s2 + 64);
#      |                   ~~~^~~~
#  260|     }
#  261|     SNAPPY_PREFETCH(s1 + 64);
#  262|->   SNAPPY_PREFETCH(s2 + 64);
#  263|   
#  264|     // Find out how long the match is. We loop over the data 64 bits at a

Error: COMPILER_WARNING: [#def7]
snappy-1.2.2/snappy-internal.h:262:22: warning[-Warray-bounds=]: array subscript 72 is outside array bounds of ‘const char[17]’
#  262 |   SNAPPY_PREFETCH(s2 + 64);
#      |                   ~~~^~~~
#  260|     }
#  261|     SNAPPY_PREFETCH(s1 + 64);
#  262|->   SNAPPY_PREFETCH(s2 + 64);
#  263|   
#  264|     // Find out how long the match is. We loop over the data 64 bits at a

Error: COMPILER_WARNING: [#def8]
snappy-1.2.2/snappy-internal.h:262:22: warning[-Warray-bounds=]: array subscript 72 is outside array bounds of ‘const char[19]’
#  262 |   SNAPPY_PREFETCH(s2 + 64);
#      |                   ~~~^~~~
#  260|     }
#  261|     SNAPPY_PREFETCH(s1 + 64);
#  262|->   SNAPPY_PREFETCH(s2 + 64);
#  263|   
#  264|     // Find out how long the match is. We loop over the data 64 bits at a

Error: COMPILER_WARNING: [#def9]
snappy-1.2.2/snappy_unittest.cc: scope_hint: In function ‘GetIOVec.constprop.isra’
snappy-1.2.2/snappy_unittest.cc:148:36: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  148 |   struct iovec* iov = new iovec[num];
#      |                                    ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#  146|       num = input.size();
#  147|     }
#  148|->   struct iovec* iov = new iovec[num];
#  149|     size_t used_so_far = 0;
#  150|     std::bernoulli_distribution one_in_five(1.0 / 5);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-13.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesnappy-1.2.2-1.fc43
store-results-to/tmp/tmpq4cxmmmh/snappy-1.2.2-1.fc43.tar.xz
time-created2025-04-25 15:47:06
time-finished2025-04-25 15:48:23
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpq4cxmmmh/snappy-1.2.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpq4cxmmmh/snappy-1.2.2-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9