]> git.ipfire.org Git - thirdparty/asterisk.git/commit
conversions.c: Specify that we only want to parse decimal numbers.
authorSean Bright <sean.bright@gmail.com>
Fri, 4 Mar 2022 20:26:22 +0000 (15:26 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 23 Mar 2022 22:08:03 +0000 (17:08 -0500)
commit2dce4f6579e483a16d40225818a48013393d742d
tree8ce85776f879c063bcc58ca4e2171d1749ea2a2c
parent309c8da206a74acbc19dc6d1abddca92d96f508f
conversions.c: Specify that we only want to parse decimal numbers.

Passing 0 as the last argument to strtoimax() or strtoumax() causes
octal and hexadecimal to be accepted which was not originally
intended. So we now force to only accept decimal.

ASTERISK-29950 #close

Change-Id: I93baf0f273441e8280354630a463df263a8c0edd
main/conversions.c
tests/test_conversions.c