Skip to content

Conversation

@naveen521kk
Copy link
Contributor

@naveen521kk naveen521kk commented Sep 16, 2022

Due to an upstream bug, passing negative values to cairo_pdf_version_to_string can cause out-of-bound memory address access, in some specific cases. Avoid that by checking for negative values, before calling that function.

See https://gitlab.freedesktop.org/cairo/cairo/-/issues/590 and https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/358
Fixes the error seen in #243 (comment)

cc @lazka

Due to an upstream bug, passing negative values
to `cairo_pdf_version_to_string` can cause
out-of-bound memory address access, in some
specific cases. Avoid that by checking for
negative values, before calling that function.

See https://gitlab.freedesktop.org/cairo/cairo/-/issues/590
@lazka lazka merged commit 947126f into pygobject:master Sep 16, 2022
@naveen521kk naveen521kk deleted the fix-out-of-bound branch September 16, 2022 16:13
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.

2 participants