Skip to content

qrenc: fix crash when PNG32 output is requested without -o - #241

Open
hilbert149 wants to merge 1 commit into
fukuchi:masterfrom
hilbert149:png32-no-outfile-crash
Open

hilbert149 wants to merge 1 commit into
fukuchi:masterfrom
hilbert149:png32-no-outfile-crash

Conversation

@hilbert149

Copy link
Copy Markdown

The outfile == NULL check only covered PNG_TYPE, so "qrenc -t PNG32" without -o passed NULL to writePNG(), which dereferences it. Check PNG32_TYPE as well.

The outfile == NULL check only covered PNG_TYPE, so "qrenc -t PNG32"
without -o passed NULL to writePNG(), which dereferences it. Check
PNG32_TYPE as well.
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