You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Radim Kolar (JIRA)" <ji...@apache.org> on 2013/12/30 03:11:50 UTC

[jira] [Created] (TS-2457) isnan called on atoi - undefined behaviour

Radim Kolar created TS-2457:
-------------------------------

             Summary: isnan called on atoi - undefined behaviour
                 Key: TS-2457
                 URL: https://issues.apache.org/jira/browse/TS-2457
             Project: Traffic Server
          Issue Type: Bug
          Components: Plugins, Quality
            Reporter: Radim Kolar


found by clang analyzer

!isnan(atoi(argv[2])) results in undefined behaviour.

Fix: use strtol, replacement for atoi with error checking and more input format support. can do octal and hexadecimal input out of the box



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)