Add malformed-input tests for the decoders

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
67/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, swift
Domain
desktop, testing

Research direction

Start by locating the decoder tests and the existing crash.sup bad-input case, then trace how .idx/.sub, .sup and .mkv inputs reach their parsers. Add malformed cases for truncated and fuzzed inputs, including an unknown-size MKV segment and reordered TrackEntry children; done when CI runs these cases and catches parser crashes or hangs.

Written by the indexing model from the issue text.

Description

enhancement

Only crash.sup covers bad input. Add truncated/fuzzed cases for .idx/.sub, .sup and .mkv (unknown-size segment, truncated file, reordered TrackEntry children) so crashes and hangs in the parsers are caught by CI.

Dominant language
Swift
Stars
42
Forks
9
Avg merge
9h 30m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ecdye/macSubtitleOCR

All issues in ecdye/macSubtitleOCR

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.