Skip to content

Handle frame_hdr being None after rav1d_decode_frame_exit - #1503

Open
kornelski wants to merge 1 commit into
memorysafety:mainfrom
kornelski:bad-frame-abort
Open

kornelski wants to merge 1 commit into
memorysafety:mainfrom
kornelski:bad-frame-abort

Conversation

@kornelski

Copy link
Copy Markdown

An invalid AV1 stream can abort the process, because a failure in rav1d_decode_frame calls rav1d_decode_frame_exit that sets frame_hdr to None. Then rav1d_submit_frame calls on_error which calls .unwrap() on it. extern "C" doesn't allow unwinding, and aborts.

out_cdf is cleared by rav1d_decode_frame_exit already, so this condition can be safely skipped in on_error.

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.

1 participant