Scott Garrett and Claude Code
e42855867d
Fix SSA header parsing for files without a [V4+ Styles] section
...
Three latent bugs combined into a crash or silently-empty subtitle
import (surfaced by feeding conv.ass to the Matroska subtitle-add
path):
- parseHeader: used NSScanner scanUpToString: for the section
markers; a failed scanUpToString: returns YES and advances the
scan location to the end of the string, so a file lacking
"[V4+ Styles]" left the scanner exhausted and the [Events]
Format: line was never parsed. Locate the markers with
rangeOfString: instead.
- The Format line is split on commas but names are separated with
", " in the wild; the leading spaces made every field name fail
its isEqualToString: in MP42SSALine, so no line ever got
text/timestamps. Split on comma and trim whitespace.
- MP42SSALine's value loop looped to `count - 1` on an NSUInteger;
with an empty format array that underflows and appends forever
until the array traps. Guard count == 0.
Co-Authored-By: Claude Code <noreply@anthropic.com >
2026-11-26 11:53:01 -05:00
..
2013-11-01 08:38:09 +01:00
2026-09-22 20:18:56 +02:00
2022-02-24 10:25:17 +01:00
2026-09-22 20:18:56 +02:00
2026-11-25 19:48:09 -05:00
2026-09-22 20:18:56 +02:00
2026-09-22 20:18:56 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2024-08-05 12:22:55 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-10-03 10:13:39 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2026-09-29 11:35:08 +02:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2025-07-25 17:35:42 +02:00
2026-10-03 10:13:39 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2020-09-19 14:39:02 +02:00
2022-01-02 09:31:49 +01:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2020-07-01 19:48:11 +02:00
2020-07-01 19:48:11 +02:00
2026-09-29 19:55:05 +02:00
2026-10-03 11:46:29 +02:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2013-11-05 11:21:31 +01:00
2026-11-25 19:48:09 -05:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2020-07-01 19:48:11 +02:00
2020-07-01 19:48:11 +02:00
2024-06-30 12:14:17 +02:00
2024-07-18 11:26:52 +02:00
2026-08-27 16:51:13 +02:00
2026-08-27 16:51:13 +02:00
2022-01-02 09:31:49 +01:00
2023-05-10 12:40:03 +02:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2026-09-30 11:40:33 +02:00
2026-09-30 11:40:33 +02:00
2026-10-03 10:26:27 +02:00
2026-10-03 10:26:27 +02:00
2022-01-02 09:31:49 +01:00
2025-08-12 16:14:11 +02:00
2025-08-12 16:14:11 +02:00
2022-01-02 09:31:49 +01:00
2024-07-03 14:13:58 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2022-01-02 09:31:49 +01:00
2026-10-03 11:46:29 +02:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2024-06-25 12:10:48 +02:00
2021-05-28 14:56:10 +02:00
2021-05-28 14:56:10 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2022-01-02 09:31:49 +01:00
2026-11-26 11:53:01 -05:00
2022-01-02 09:31:49 +01:00
2026-10-03 10:13:39 +02:00
2026-09-22 18:50:05 +02:00
2026-09-22 18:50:05 +02:00
2026-09-29 11:35:08 +02:00
2026-09-29 11:35:08 +02:00
2026-09-29 11:35:08 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2026-09-22 18:50:05 +02:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2026-11-25 19:48:09 -05:00
2022-01-02 09:31:49 +01:00
2024-06-27 11:08:55 +02:00
2023-05-10 12:40:03 +02:00
2026-09-29 19:55:05 +02:00
2026-09-29 11:35:08 +02:00
2026-09-29 11:35:08 +02:00
2017-09-29 22:10:09 +02:00
2026-09-22 18:50:05 +02:00
2017-11-27 09:22:08 +01:00
2020-07-01 19:48:11 +02:00
2022-01-02 09:31:49 +01:00
2022-01-02 09:31:49 +01:00
2024-06-27 11:08:55 +02:00
2024-11-29 12:31:30 +01:00
2013-11-01 10:20:09 +01:00
2013-11-01 10:20:09 +01:00