diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:22:25 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:22:25 -0500 |
| commit | 68467da17d576a17e4ff96c60f581561ac0bbe88 (patch) | |
| tree | abd46d060469cd4438634c5c4ff660d2b1771c2c /src/stdlib/_strtoi.h | |
| parent | 8a620a7c60e5745f5f38aaa1547a66a2d0dc9926 (diff) | |
check for invalid integer conversions
Diffstat (limited to 'src/stdlib/_strtoi.h')
| -rw-r--r-- | src/stdlib/_strtoi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdlib/_strtoi.h b/src/stdlib/_strtoi.h index dc160aeb..194e0c8f 100644 --- a/src/stdlib/_strtoi.h +++ b/src/stdlib/_strtoi.h @@ -106,6 +106,7 @@ if (ret > max / base) { overflow = 1; + UNDEFINED("In call to %s(): %s (base %d) is not representable", __func__, start, base); } else { ret = (ret * base) + n; } |
