[Asterisk-code-review] conversions.c: Specify that we only want to parse decimal numbers. (asterisk[16])
Sean Bright
asteriskteam at digium.com
Fri Mar 4 15:30:35 CST 2022
Sean Bright has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/c/asterisk/+/18182 )
Change subject: conversions.c: Specify that we only want to parse decimal numbers.
......................................................................
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
---
M main/conversions.c
M tests/test_conversions.c
2 files changed, 14 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/82/18182/2
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18182
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I93baf0f273441e8280354630a463df263a8c0edd
Gerrit-Change-Number: 18182
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Bright <sean at seanbright.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220304/32ee1506/attachment.html>
More information about the asterisk-code-review
mailing list