]> git.ipfire.org Git - thirdparty/cups.git/commit
raster-interpret.c: Verify base for `strtol()`
authorZdenek Dohnal <zdohnal@redhat.com>
Mon, 10 Mar 2025 08:52:55 +0000 (09:52 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Mon, 10 Mar 2025 08:52:55 +0000 (09:52 +0100)
commit71a88c80f2130aa148eb90d204dc5fc900ceb988
tree20699ed36bbc734c17856a3fc30df1edf22046a9
parenteb02560411b3a46e9ddfc661d5d0469c98cbea35
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