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

raster-interpret.c: Verify base for strtol() #56

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

zdohnal
Copy link
Member

@zdohnal zdohnal commented Mar 10, 2025

Input for atoi() can be bad number for argument base in strtol(), causing returning an incorrect pointer address and later segfault.

Break out from function if the base is incorrect.

Input for atoi() can be bad number for argument base in strtol(), causing returning an incorrect pointer address and later segfault.

Break out from function if the base is incorrect.
@zdohnal zdohnal requested a review from tillkamppeter March 10, 2025 09:08
@zdohnal
Copy link
Member Author

zdohnal commented Mar 10, 2025

Related OpenPrinting/cups#1188 .

@tillkamppeter tillkamppeter merged commit a87c672 into OpenPrinting:master Mar 10, 2025
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