Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix quantizr backend returning success when quantization fails#4986

Open
felixbuenemann wants to merge 1 commit intolibvips:masterfrom
felixbuenemann:fix-quantizr-error-checking
Open

Fix quantizr backend returning success when quantization fails#4986
felixbuenemann wants to merge 1 commit intolibvips:masterfrom
felixbuenemann:fix-quantizr-error-checking

Conversation

@felixbuenemann
Copy link
Copy Markdown
Collaborator

quantizr_quantize() returns NULL on failure instead of an error code, but vips__quantise_image_quantize() unconditionally returned 0 (success), causing callers to dereference a NULL result pointer.

quantizr_quantize() returns NULL on failure instead of an error code,
but vips__quantise_image_quantize() unconditionally returned 0 (success),
causing callers to dereference a NULL result pointer.
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