snappy-1.2.2-3.fc44

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.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-17.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namesnappy-1.2.2-3.fc44
store-results-to/tmp/tmpobfdkm4j/snappy-1.2.2-3.fc44.tar.xz
time-created2025-10-28 20:34:07
time-finished2025-10-28 20:35:35
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpobfdkm4j/snappy-1.2.2-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpobfdkm4j/snappy-1.2.2-3.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9