8000 Update Python/fileutils.c · python/cpython@f5f2c7b · GitHub
[go: up one dir, main page]

Skip to content

Commit f5f2c7b

Browse files
Update Python/fileutils.c
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
1 parent cc3a59c commit f5f2c7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/fileutils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,6 +2393,7 @@ wchar_t *
23932393
_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t start, Py_ssize_t *normsize)
23942394
{
23952395
assert(path != NULL);
2396+
assert(start>=0);
23962397
if ((size < 0 && !path[0]) || size == 0) {
23972398
*normsize = 0;
23982399
return path;

0 commit comments

Comments
 (0)
0