Skip to content

Check WebPMuxNew return value#9689

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:webp
Open

Check WebPMuxNew return value#9689
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:webp

Conversation

@radarhere

Copy link
Copy Markdown
Member

WebPMuxNew() may return NULL - https://github.com/webmproject/libwebp/blob/3757b8afeb54e305eaef18502812a9a88b7ed662/src/webp/mux.h#L110-L116

// Creates an empty mux object.
// Returns:
//   A pointer to the newly created empty mux object.
//   Or NULL in case of memory error.
WEBP_NODISCARD static WEBP_INLINE WebPMux* WebPMuxNew(void) {
  return WebPNewInternal(WEBP_MUX_ABI_VERSION);
}

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