Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qpdf-cm.cxx: Fix possible integer overflow #43

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

zdohnal
Copy link
Member

@zdohnal zdohnal commented Dec 1, 2023

Use unsigned int (we use the variable as string index anyway) and check if we overflow everytime we increment the variable.

Fixes #42

Use unsigned int (we use the variable as string index anyway) and check
if we overflow everytime we increment the variable.

Fixes OpenPrinting#42
@tillkamppeter tillkamppeter merged commit 9f8cd1e into OpenPrinting:master Dec 1, 2023
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.

Possible INTEGER_OVERFLOW in filter/pdftopdf/qpdf_cm.cc
2 participants