check av_frame_alloc failure in loadImage by yangzao · Pull Request #236 · unpaper/unpaper · GitHub
Skip to content

check av_frame_alloc failure in loadImage#236

Open
yangzao wants to merge 1 commit into
unpaper:mainfrom
yangzao:fix-loadimage-frame-allocation
Open

check av_frame_alloc failure in loadImage#236
yangzao wants to merge 1 commit into
unpaper:mainfrom
yangzao:fix-loadimage-frame-allocation

Conversation

@yangzao

@yangzao yangzao commented Jun 2, 2026

Copy link
Copy Markdown

Hi, I found this av_frame_alloc call in loadImage lacks a nullptr check, which causes a nullptr dereference if the function fails. This commit adds such a check for it.

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