]> git.ipfire.org Git - thirdparty/cups.git/commit
raster-interpret.c: Verify base for `strtol()`
authorzdohnal <zdohnal@redhat.com>
Mon, 10 Mar 2025 08:13:10 +0000 (09:13 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Mar 2025 08:13:10 +0000 (09:13 +0100)
commitd11164c5f8241d4561ff815e43499b68bbbe7c4b
tree765e805a4e7810f9bd4a1d7da0e3631b41c6bd44
parent745f21c5ff9a25c3412dcd1ea5975f8ea1326559
parent7487b879ee5440e2b8313ae17d8f400d3488222e
raster-interpret.c: Verify base for `strtol()`

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.

Fixes #1188