Repository navigation
Fixes #267 #268 #271 #272 — temp arena, recursion, @max_iterations, bigint/HashMap - #393
Merged
Merged
Conversation
4 tasks done
godofecht
marked this pull request as ready for review
August 10, 2026 11:08
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. |
Close strcat/closure malloc leaks via flow_temp_alloc + atexit (#267/#268). Add limb bigint and HashMap_i64_i64 for Euler (#252). Reject recursion under --profile safety|flight via the safety manifest (#273 partial). Co-authored-by: Abhishek Shivakumar <[email protected]>
Require @max_iterations(N) on while loops when FLOW_PROFILE=safety|flight, emit a C runtime abort guard, and rewrite HashMap probes to bounded for-loops. Also closes recursion detection under the same profiles (#271). Co-authored-by: Abhishek Shivakumar <[email protected]>
Co-authored-by: Abhishek Shivakumar <[email protected]>
godofecht
force-pushed
the
cursor/misra-euler-batch-b994
branch
from
August 10, 2026 11:09
fb312c9 to
394c7df
Compare
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
Closes strcat/closure heap leaks and lands Euler-oriented stdlib + MISRA control-flow gates. Independent of open PR #288 (null deref / if-expressions).
#267 / #268 — temp arena
flow_temp_alloc/flow_temp_free_allwithatexitflow_strcatand escaping closure envs allocate from the arena#271 / #272 — control flow under safety/flight
whilerequires@max_iterations(N); C emits a runtime counter/abortforloops remain allowed without attributes#252 (partial) — Euler stdlib
lib/stdlib/bigint.flow+HashMap_i64_i64in collectionshashmap_i64_smoke.flow(exit 30),bigint_smoke.flow(exit 7)#273 (partial)
Test plan
pytest tests/unit/test_misra_euler_batch.pyFLOW_HOST=python ./flow run examples/basics/hashmap_i64_smoke.flow→ 30FLOW_HOST=python ./flow run examples/basics/bigint_smoke.flow→ 7