Repository navigation
Fixes #274 #275 #276 #277 #278 #280 #281 #283 #284 — MISRA Phase 2 - #394
Merged
Merged
Conversation
Add MISRA/CERT compliance matrices (#278), FLOW_DIAG (#281), -Werror=implicit-function-declaration under safety (#283), checked/saturating/wrapping stdlib helpers (#275), @safe/@unsafe with required @unsafe extern under safety (#284/#276), reproducible C-emit test (#280), and ./flow analyze pattern scanner (#277). Co-authored-by: Abhishek Shivakumar <[email protected]>
Under FLOW_PROFILE=flight, flow_strcat and escaping closures no longer malloc; transpile fails if generated C still contains malloc/calloc/ realloc/free. Co-authored-by: Abhishek Shivakumar <[email protected]>
godofecht
force-pushed
the
cursor/misra-phase2-b994
branch
from
August 10, 2026 11:15
f0f3d57 to
117dddf
Compare
godofecht
marked this pull request as ready for review
August 10, 2026 11:15
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MISRA/CERT Phase 2 — documentation and safety-boundary enforcement independent of open PRs #288 / #393.
docs/certification/hub + MISRA/CERT matrices-Werror=implicit-function-declarationunder safety/flightlib/stdlib/checked_arith.flow(wrapping/saturating/checked helpers)@safe/@unsafeattributes + type-checker boundaries@unsafeonexternFLOW_DIAGmacro (override to silence stdio in fault paths)./flow analyzelightweight MISRA/CERT pattern scan--profile flightbans compiler-injected heap + post-codegen scanStill elsewhere
Test plan
pytest tests/unit/test_misra_phase2.pyFLOW_HOST=python ./flow run examples/basics/checked_arith_smoke.flowFLOW_PROFILE=flighttranspile of hello_world succeeds without malloc./flow analyzeflags malloc