mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 01:35:31 +02:00
Bug#16997513 MY_STRTOLL10 ACCEPTING OVERFLOWED UNSIGNED LONG LONG VALUES AS NORMAL ONES
Merge from mysql-5.1 into mysql-5.5
This commit is contained in:
commit
b79864ae31
1 changed files with 2 additions and 2 deletions
|
|
@ -193,8 +193,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
|
|||
goto overflow;
|
||||
|
||||
/* Check that we didn't get an overflow with the last digit */
|
||||
if (i > cutoff || (i == cutoff && ((j > cutoff2 || j == cutoff2) &&
|
||||
k > cutoff3)))
|
||||
if (i > cutoff || (i == cutoff && (j > cutoff2 || (j == cutoff2 &&
|
||||
k > cutoff3))))
|
||||
goto overflow;
|
||||
li=i*LFACTOR2+ (ulonglong) j*100 + k;
|
||||
return (longlong) li;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue