Skip to content

runtime: support sys.stdout and sys.stderr and implement proper print#29

Open
gf712 wants to merge 2 commits into
mainfrom
better-print
Open

runtime: support sys.stdout and sys.stderr and implement proper print#29
gf712 wants to merge 2 commits into
mainfrom
better-print

Conversation

@gf712

@gf712 gf712 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

@claude

claude Bot commented Jun 29, 2026

Copy link
Copy Markdown

Code review complete. Found 5 bugs in src/runtime/modules/IOModule.cpp. Key issues: (1) L2169: flush registered under wrong name close, (2) L1359-1362: raw_write early return drops data, (3) L1401-1404: sputn OOB read with buffer.len instead of remaining, (4) L2185-2186: ferror(nullptr) UB after failed open, (5) L2206-2207: missing nullptr check after fdopen.

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.

1 participant