]> 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:13:03 +0000 (17:13 -0500)
commitc33718a54db8d0b06fed95ce858b0f28c4d9c961
tree8e5a6c570f1294a60d4a5ee92ba9e6b5ea96194e
parent2a87303ebd531a1303088548c8951cdcfb5167d7
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