[CSA] CSA Weekly Report - 130 findings (2026-02-25) #8771
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-03-04T01:42:46.828Z.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Clang Static Analyzer Report
Date: 2026-02-25
Commit:
48de0f8a5e03(updated compiled workflows)Build Type: Debug (CMake + Ninja)
Analyzer: scan-build (LLVM 18.1.3)
Report Location:
/tmp/csa-report/2026-02-25-001615-405-1/Summary
Changes Since Last Run (2026-02-24)
Status: ✅ No changes detected
Interpretation: The recent workflow compilation updates (
48de0f8a5e03) did not introduce new static analysis issues.Findings by Category
🔴 High Severity - Core Logic Errors (94 findings)
🟡 Medium Severity - Suspicious Operations (9 findings)
🟢 Low Severity - Dead Code (27 findings)
Top Affected Files
src/ast/ast.hsrc/smt/smt_context.hsrc/ast/sls/sls_seq_plugin.cppsrc/util/util.hsrc/math/simplex/bit_matrix.cppsrc/math/realclosure/realclosure.cppsrc/ast/euf/euf_mam.cppsrc/smt/mam.cppsrc/math/lp/nla_core.cppsrc/util/bit_util.cppHigh-Priority Findings (Detailed)
1. 🔴 Null Pointer Dereference in Debug Code
File:
src/util/debug.cpp:163Impact: Intentional crash trigger in debug assertion handler. Likely a false positive - this is deliberate behavior.
2. 🔴 Called C++ Object Null (Multiple locations)
File:
src/math/realclosure/realclosure.cpp:3461,3477,3494warning: Called C++ object pointer is null [core.CallAndMessage] return ext->sdt()->qs()[sc->qidx()].size();Impact: Potential segmentation fault in real closure arithmetic. Likely protected by preconditions not visible to static analyzer.
3. 🟡 Bitwise Shift Overflow (GENUINE ISSUE)
File:
src/math/simplex/bit_matrix.cpp:128Impact: Undefined behavior when
n > 32. This appears to be a genuine bug requiring a fix.Recommendation: Add bounds check or use
1U << (n-1)with validation.4. 🟡 Negative Right Shift (GENUINE ISSUE)
File:
src/util/mpff.cpp:164,178warning: Right operand is negative in right shift [core.BitwiseShift] return *s >> exp; ```` **Impact**: **Undefined behavior** with negative exponents. Likely a **genuine bug** requiring validation. --- ### 5. 🔴 Division by Zero (5 locations) Found in arithmetic modules. Requires **manual code review** to verify runtime guards exist. --- ## Sample Warnings (First 30) <details> <summary>Click to expand raw warning excerpts</summary> ```` src/util/debug.cpp:163:16: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference] src/util/bit_util.cpp:222:41: warning: Right shift by '32' overflows the capacity of 'unsigned int' [core.BitwiseShift] src/util/bit_util.cpp:286:37: warning: Left shift overflows the capacity of 'unsigned int' [core.BitwiseShift] src/util/bit_util.cpp:338:33: warning: Left shift overflows the capacity of 'unsigned int' [core.BitwiseShift] src/util/bit_util.cpp:343:33: warning: Left shift overflows the capacity of 'unsigned int' [core.BitwiseShift] src/util/mpff.cpp:164:15: warning: Right operand is negative in right shift [core.BitwiseShift] src/util/mpff.cpp:178:24: warning: Right operand is negative in right shift [core.BitwiseShift] src/math/simplex/bit_matrix.cpp:128:36: warning: Left shift by '32' overflows the capacity of 'int' [core.BitwiseShift] src/math/realclosure/realclosure.cpp:3461:37: warning: Called C++ object pointer is null [core.CallAndMessage] src/math/polynomial/polynomial.cpp:2581:28: warning: Access to field 'm_next' results in a dereference of a null pointer (loaded from field 'm_del_eh') [core.NullDereference] src/ast/act_cache.cpp:178:22: warning: The left operand of '&' is a garbage value [core.UndefinedBinaryOperatorResult]Analysis Notes
False Positive Likelihood: Moderate to High
Many findings are likely false positives due to:
SASSERT()macros active only in debug buildsact_cache.cppinvolve intentional low-bit tagging schemesGenuine Issues Identified
The following categories likely contain real bugs:
Recommendations
🔴 Immediate Actions (Critical)
src/util/bit_util.cpp(4 locations)src/math/simplex/bit_matrix.cpp(5 locations)src/util/mpff.cpp🟡 Short-term Actions
🟢 Long-term Actions
__attribute__((nonnull))or similar annotations to help analyzeralpha.*,security.*,nullability.*How to Reproduce Locally
Notes
/tmp/csa-report/2026-02-25-001615-405-1/Next scheduled run: Automatic weekly trigger or manual workflow dispatch
Beta Was this translation helpful? Give feedback.
All reactions