Skip to content

Propagate allocation failure from ogg_sync_buffer.

Ralph Giles requested to merge ogg_sync_buffer into master

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 fallable 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.

Merge request reports