<p>Kevin Harwell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8681">View Change</a></p><p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/8681/2/apps/app_voicemail.c">File apps/app_voicemail.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8681/2/apps/app_voicemail.c@4286">Patch Set #2, Line 4286:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">   msgnum = (int)strtol(data->msgnums, NULL, 10);<br>     duration = (int)strtol(data->duration, NULL, 10);<br>  origtime = (int)strtol(data->origtime, NULL, 10);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Conversions can be tricky. For instance, one has to either check for possible under/over flows and/or other potential conversion errors, or guarantee the input will not cause a problem.</p><p style="white-space: pre-wrap; word-wrap: break-word;">It's doubtful these input values would be a problem, but is it possible for one to be out of range? If that does occur is the strtol possible return values acceptable in these cases?</p><p style="white-space: pre-wrap; word-wrap: break-word;">Another option would be to use 'sscanf' to convert the values. It might make things slightly easier.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8681">change 8681</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8681"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I8543ad480a08c98be78bde1ee870e6e6c84b2c5b </div>
<div style="display:none"> Gerrit-Change-Number: 8681 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Nic Colledge <nic@njcolledge.net> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 29 Mar 2018 19:50:56 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>