Skip to content
Snippets Groups Projects
Verified Commit 0a4cd796 authored by Ralph Giles's avatar Ralph Giles
Browse files

Propagate allocation failure from ogg_sync_buffer.

Instead of segfault, report OP_EFAULT if ogg_sync_buffer returns
a null pointer. This allows more graceful recovery by the caller
in the unlikely event of a fallible ogg_malloc call.

We do check the return value elsewhere in the code, so the new
checks make the code more consistent.

Thanks to https://github.com/xiph/opusfile/issues/36

 for reporting.

Signed-off-by: default avatarTimothy B. Terriberry <tterribe@xiph.org>
Signed-off-by: default avatarMark Harris <mark.hsj@gmail.com>
parent cf218fb5
No related branches found
No related tags found
No related merge requests found
Pipeline #3306 passed