mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
This commit is contained in:
parent
6f2a5efec9
commit
582acece2e
9 changed files with 40 additions and 21 deletions
|
@ -62,7 +62,7 @@ getcwd(buf, size)
|
|||
return NULL;
|
||||
}
|
||||
ret = getwd(localbuf);
|
||||
if (ret != NULL && strlen(localbuf) >= size) {
|
||||
if (ret != NULL && strlen(localbuf) >= (size_t)size) {
|
||||
errno = ERANGE;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue