From 0114da358e4cdbfbd0e68cca0e64a704c76d2b24 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Mon, 26 Jun 2023 12:05:17 -0400 Subject: [PATCH] i may not be able to reach validPathCount if validPathCount is large enough Should never happen, but in case it does, i should be a size_t, not an int. --- CoreFoundation/Base.subproj/CFFileUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreFoundation/Base.subproj/CFFileUtilities.c b/CoreFoundation/Base.subproj/CFFileUtilities.c index 53596fb964d..94453409de4 100644 --- a/CoreFoundation/Base.subproj/CFFileUtilities.c +++ b/CoreFoundation/Base.subproj/CFFileUtilities.c @@ -1390,7 +1390,7 @@ CF_PRIVATE CFArrayRef _CFCreateCFArrayByTokenizingString(const char *values, cha } free(copyDirPath); CFArrayRef pathArray = CFArrayCreate(kCFAllocatorSystemDefault, (const void **)pathList , validPathCount, &kCFTypeArrayCallBacks); - for(int i = 0; i < validPathCount; i ++) { + for(size_t i = 0; i < validPathCount; i ++) { CFRelease(pathList[i]); } return pathArray;