Skip to content

Fixes #266 #279 — null deref + unified fault handler + if-expressions - #288

Merged
godofecht merged 2 commits into
mainfrom
cursor/misra-phase1-b994
Aug 10, 2026
Merged

godofecht merged 2 commits into
mainfrom
cursor/misra-phase1-b994

Conversation

@godofecht

@godofecht godofecht commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CI on the previous revision failed because overflow/FLOW_NONNULL were always on, rewriting self->… / a + b and breaking ~26 string-pin unit tests.

That matches what #289 already fixed for overflow: these checks are opt-in under --profile safety / FLOW_OVERFLOW_CHECK=1.

This PR (rebased onto main after #289):

Issue Change
#266 FLOW_NONNULL on * / -> under safety profile
#279 Unified flow_fault_handler(msg); div0/shift/overflow/null/bounds route through it
#252 If-expressions let x = if cond { a } else { b }
#273 docs/language/safety-profiles.md (partial)

#263 already closed by #289 — not claimed here.

Verify

pytest tests/unit/test_arith_safety.py tests/unit/test_if_expression.py \
  tests/unit/test_closure_capture.py tests/unit/test_connect_composition.py -q
Open in Web Open in Cursor 

@godofecht
godofecht marked this pull request as ready for review August 10, 2026 08:57
@cursor

cursor Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Fixes #263 #266 #279

- Unified flow_fault_handler; signed overflow via __builtin_*_overflow
- Null deref guards (FLOW_NONNULL) on * and ->
- If-expressions for #252; safety-profiles.md for #273

Co-authored-by: Abhishek Shivakumar <[email protected]>
@cursor
cursor Bot force-pushed the cursor/misra-phase1-b994 branch from 529407e to 79e67de Compare August 10, 2026 09:21
@cursor cursor Bot changed the title Fixes #263 #266 #279 — MISRA Phase 1 overflow/null/fault handler + if-expressions Fixes #266 #279 — null deref + unified fault handler + if-expressions Aug 10, 2026
@godofecht
godofecht merged commit 8cbcb24 into main Aug 10, 2026
16 checks passed
@godofecht
godofecht deleted the cursor/misra-phase1-b994 branch August 10, 2026 15:33
@godofecht godofecht mentioned this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants