Skip to content

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

Merged
gf712 merged 4 commits into
mainfrom
better-print
Jul 1, 2026
Merged

runtime: support sys.stdout and sys.stderr and implement proper print#29
gf712 merged 4 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.

Comment thread src/runtime/modules/IOModule.cpp
Comment thread src/runtime/modules/IOModule.cpp Outdated
Comment thread src/runtime/modules/IOModule.cpp Outdated
Comment thread src/runtime/modules/BuiltinsModule.cpp
Comment thread src/runtime/modules/BuiltinsModule.cpp
@claude

claude Bot commented Jun 30, 2026

Copy link
Copy Markdown

Code review

Found 5 issues — see the inline comments.

@gf712 gf712 merged commit 05e6c2e into main Jul 1, 2026
2 checks passed
@gf712 gf712 deleted the better-print branch July 1, 2026 06:31
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