Rust panic on malformed input due to unchecked unwrap() calls #893

Closed
opened 2026-01-29 16:56:23 +00:00 by claunia · 1 comment
Owner

Originally created by @THE-Amrit-mahto-05 on GitHub (Jan 7, 2026).

description

The Rust components of CCExtractor contain several unchecked unwrap() calls that can cause user triggerable panics when processing malformed input or invalid command line arguments.

Impact

  • Malformed CLI arguments or corrupted broadcast data can panic the Rust runtime
  • This is user-triggerable and causes a denial of service style crash
  • Affects robustness and reliability of the Rust pipeline

Affected

Rust CLI parser
parser.rs

  • Unchecked parse().unwrap() in argument handling

Rust Teletext decoder
teletext.rs

  • decode_hamming_8_4(...).unwrap() and similar unchecked operations on broadcast data

Expected Behavior

  • Invalid or malformed input should produce a clear error message
  • Malformed teletext packets should be safely ignored, not crash the process
Originally created by @THE-Amrit-mahto-05 on GitHub (Jan 7, 2026). ### description The Rust components of CCExtractor contain several unchecked unwrap() calls that can cause user triggerable panics when processing malformed input or invalid command line arguments. ### Impact - Malformed CLI arguments or corrupted broadcast data can panic the Rust runtime - This is user-triggerable and causes a denial of service style crash - Affects robustness and reliability of the Rust pipeline ### Affected Rust CLI parser parser.rs - Unchecked parse().unwrap() in argument handling Rust Teletext decoder teletext.rs - decode_hamming_8_4(...).unwrap() and similar unchecked operations on broadcast data ### Expected Behavior - Invalid or malformed input should produce a clear error message - Malformed teletext packets should be safely ignored, not crash the process
Author
Owner

@cfsmp3 commented on GitHub (Jan 8, 2026):

Please don't open a ticket for these things - PRs are OK, but issues are for users to report problems. If a developer sees a problem he/she just sends a PR.

@cfsmp3 commented on GitHub (Jan 8, 2026): Please don't open a ticket for these things - PRs are OK, but issues are for users to report problems. If a developer sees a problem he/she just sends a PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#893