[Asterisk-code-review] conversions.c: Specify that we only want to parse decimal numbers. (asterisk[master])

Sean Bright asteriskteam at digium.com
Fri Mar 4 15:32:17 CST 2022


Sean Bright has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/c/asterisk/+/18204 )

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/04/18204/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18204
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I93baf0f273441e8280354630a463df263a8c0edd
Gerrit-Change-Number: 18204
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/369b008d/attachment.html>


More information about the asterisk-code-review mailing list