[clang] [NFC][analyzer] Add regression tests from bisection commits to the CSA's test suite (PR #241058)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 11 00:11:16 PST 2026
================
@@ -151,3 +151,25 @@ void b(void) {
foo();
}
} // no-crash
+
+float GH49330(int nValues, int x) {
+ int sqr = nValues * nValues;
+ float array[sqr];
+
+ for(unsigned long i = 0; i < sqr; ++i) {
+ array[i] = 0;
+ }
+
+ float sum = 0;
+ for (int i = 0; i < nValues; i++){
+ for (int j = 0; j < nValues; j++) {
+ sum += x * array[i + nValues * j]; // no-warning
+ }
+ }
+
+ if ( x < 12 ) {
+ GH49330(nValues, x+1);
+ }
----------------
NagyDonat wrote:
Is this recursive call significant for the bug?
If the bug triggers in the old version without this, please remove this.
https://github.com/llvm/llvm-project/pull/241058
More information about the cfe-commits
mailing list