Re: avoid atoi, when possible; int overflow -> heap corruption
- From
- Morten Welinder <mwelinder@gmail.com>
- Date
- May 22, 2006, 13:54 UTC
- Message-ID
- <118833cc0605220654r51ce7764udab70c1ee89d9c3d@mail.gmail.com>
- In-Reply-To
- <20060522133746.GA12302@coredump.intra.peff.net>
My copy (which is admittedly a draft because I am cheap) does not restrict undefined behaviour to _range_ errors, but simply says "Except for the behavior on error, they are equivalent to [the strtol call]"
M.