]> git.ipfire.org Git - thirdparty/cups.git/commit
raster-interpret.c: Verify base for `strtol()` 1189/head
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 7 Mar 2025 09:32:26 +0000 (10:32 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 7 Mar 2025 09:32:26 +0000 (10:32 +0100)
commit7487b879ee5440e2b8313ae17d8f400d3488222e
tree765e805a4e7810f9bd4a1d7da0e3631b41c6bd44
parent745f21c5ff9a25c3412dcd1ea5975f8ea1326559
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
cups/raster-interpret.c