git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
strtoi.c
diff --git
a/Usermode/Libraries/libc.so_src/strtoi.c
b/Usermode/Libraries/libc.so_src/strtoi.c
index
9864fd5
..
84bf000
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/strtoi.c
+++ b/
Usermode/Libraries/libc.so_src/strtoi.c
@@
-138,7
+138,8
@@
long long strtoll(const char *str, char **end, int base)
//_SysDebug("strtoll - neg=%i,ret=%llu", neg, ret);
if( neg ) {
- if( ret + LLONG_MIN > 0 ) {
+ // Abuses unsigned integer overflow
+ if( ret + LLONG_MIN < ret ) {
errno = ERANGE;
return LLONG_MIN;
}
UCC
git Repository :: git.ucc.asn.au