Page MenuHomeFreeBSD

bintrans: Error out if writing to the output failed.
ClosedPublic

Authored by des on Jan 21 2024, 5:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 1, 4:04 AM
Unknown Object (File)
Mon, Feb 9, 12:09 PM
Unknown Object (File)
Jan 22 2026, 10:52 PM
Unknown Object (File)
Jan 15 2026, 4:24 AM
Unknown Object (File)
Jan 14 2026, 11:15 AM
Unknown Object (File)
Jan 13 2026, 1:54 AM
Unknown Object (File)
Jan 2 2026, 6:20 AM
Unknown Object (File)
Dec 31 2025, 10:34 PM
Subscribers

Details

Summary
  • Cover all code paths.
  • When decoding, check all output files, not just the last one.
  • A simple ferror() check is not enough as an error may later occur while flushing whatever remains in the output buffer.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 55566
Build 52455: arc lint + arc unit

Event Timeline

des requested review of this revision.Jan 21 2024, 5:37 PM

This needs a little more work as base64_decode() may return early.

fix decode cases correctly

allanjude added a subscriber: allanjude.

Reviewed-by: allanjude

This revision is now accepted and ready to land.Jan 31 2024, 2:40 PM