Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bec8595b
Commit
bec8595b
authored
Jul 31, 2013
by
Joao Gramacho
Browse files
Options
Browse Files
Download
Plain Diff
Bug#16997513 MY_STRTOLL10 ACCEPTING OVERFLOWED UNSIGNED LONG LONG VALUES AS NORMAL ONES
Merge from mysql-5.1 into mysql-5.5
parents
c58d7091
be9dcdf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
strings/my_strtoll10.c
strings/my_strtoll10.c
+2
-2
No files found.
strings/my_strtoll10.c
View file @
bec8595b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment