Skip to content

Conversation

WorkingRobot
Copy link
Contributor

I had a pretty weird crash that gets caused by the old assert!(packet.is_empty()); assertion. At the assertion point, I had the following state:
packet.len() = 3908
ctx = { ... abgp: 0, stream_serial: 0, header_flags: 2, flags: PaginateContextFlags { first_page: false, fresh_packet: true, packet_finished_on_page: false, need_nil_page: true }, pos: 0, idx: 24, remaining_page_size: 8160, current_packet_len: 3908, last_segment_size: Some(83)

This PR seems to fix it, but I'm unfamiliar with all the inner workings of ogg, so please let me know if there's something I should fix.

Signed-off-by: Asriel Camora <asriel@camora.dev>
@Serial-ATA Serial-ATA added this to the 0.23.0 milestone Sep 28, 2025
@Serial-ATA
Copy link
Owner

Interesting. Thanks for the fix!

If you still have it, could you email the file to serial AT [domain on my profile]? There's already a test in ogg_pager for nil packets, but I guess there's some other case I didn't think of.

@Serial-ATA Serial-ATA merged commit f0335f1 into Serial-ATA:main Sep 28, 2025
4 checks passed
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.

2 participants