mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 13:49:06 +00:00
The previous implementation of strtoul(l) is flawed. The range check assumed that when overflow happens, the truncated value is smaller than the original value. As a counter example, passing "10000000000" to strtol will not trigger ERANGE, but return a truncated value. This patch adds more accurate range checks. Change-Id: I239e034e390b4974157ed6efa17110f2e74904cf Signed-off-by: Peter Bee <bijunda1@xiaomi.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| lib_abort.c | ||
| lib_abs.c | ||
| lib_aligned_alloc.c | ||
| lib_atof.c | ||
| lib_atoi.c | ||
| lib_atol.c | ||
| lib_atoll.c | ||
| lib_bsearch.c | ||
| lib_checkbase.c | ||
| lib_div.c | ||
| lib_Exit.c | ||
| lib_itoa.c | ||
| lib_labs.c | ||
| lib_ldiv.c | ||
| lib_llabs.c | ||
| lib_lldiv.c | ||
| lib_mblen.c | ||
| lib_mbstowcs.c | ||
| lib_mbtowc.c | ||
| lib_mkdtemp.c | ||
| lib_mkstemp.c | ||
| lib_mktemp.c | ||
| lib_posix_memalign.c | ||
| lib_ptsname.c | ||
| lib_ptsnamer.c | ||
| lib_qsort.c | ||
| lib_rand.c | ||
| lib_realpath.c | ||
| lib_srand.c | ||
| lib_stackchk.c | ||
| lib_strtod.c | ||
| lib_strtof.c | ||
| lib_strtol.c | ||
| lib_strtold.c | ||
| lib_strtoll.c | ||
| lib_strtoul.c | ||
| lib_strtoull.c | ||
| lib_unlockpt.c | ||
| lib_wcstombs.c | ||
| lib_wctomb.c | ||
| Make.defs | ||