Skip to content

fix(bindings): propagate binary file read failures - #1104

Merged
andiwand merged 2 commits into
mainfrom
review/86-binding-file-reads
Oct 5, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/86-binding-file-reads

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Python and Java image/font reads, and Apple file/image/font reads, now use the existing checked File::pipe API. Direct stream-buffer insertion could swallow a ZIP checksum failure and return truncated bytes as success: the regression input previously returned 999,424 of 1,000,008 bytes without an error.

Validation: all 97 Python and 78 JNI tests pass. One Python regression covers the corrupt archive entry. A temporary Objective-C++ harness reproduces the Apple failure before the change and receives an NSError after it; both changed Apple implementation files compile to native objects. The full Swift/iOS suite was not run for this layer.

@andiwand
andiwand force-pushed the review/85-android-native-packaging branch from 55a9d20 to 70fe43e Compare October 5, 2026 20:49
Base automatically changed from review/85-android-native-packaging to main October 5, 2026 20:50
andiwand and others added 2 commits October 5, 2026 22:57
The corrupt archive has one user, so it lives in that test. The Apple
sources no longer read a std::istream.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand
andiwand force-pushed the review/86-binding-file-reads branch from 94f43af to 2b6d955 Compare October 5, 2026 20:58
@andiwand
andiwand merged commit 4f15d68 into main Oct 5, 2026
23 checks passed
@andiwand
andiwand deleted the review/86-binding-file-reads branch October 5, 2026 20:59
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