You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Zip in my project and on very start I must unzip some package. So during address sanitizer tests I found that it complains on function quickUnzipFile(_ path: URL). So there is memory issue on very start of my project in Zip, thus can't test my code.
Issue is in Zip.swift: 195
fclose(filePointer) // <------ Address Sanitizer complains here
crc_ret = unzCloseCurrentFile(zip)
if crc_ret == UNZ_CRCERROR {
throw ZipError.unzipFail
}
==5827==AddressSanitizer CHECK failed: /Library/Caches/com.apple.xbs/Sources/clang_compiler_rt/clang-802.0.41/src/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:202 "((h->type == CommonInterceptorMetadata::CIMT_FILE)) != (0)" (0x0, 0x0)
#0 0x100374ddf in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/var/containers/Bundle/Application/D2FB8C94-89AB-46E6-B6C0-F41BEC122A30/MyApp.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x54ddf) #1 0x1003884bf in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/var/containers/Bundle/Application/D2FB8C94-89AB-46E6-B6C0-F41BEC122A30/MyApp.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x684bf) #2 0x100363177 in wrap_fclose (/var/containers/Bundle/Application/D2FB8C94-89AB-46E6-B6C0-F41BEC122A30/MyApp.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x43177) #3 0x1001f8947 in static Zip.Zip.unzipFile (Foundation.URL, destination : Foundation.URL, overwrite : Swift.Bool, password : Swift.Optional<Swift.String>, progress : Swift.Optional<(Swift.Double) -> ()>) throws -> () (/private/var/containers/Bundle/Application/D2FB8C94-89AB-46E6-B6C0-F41BEC122A30/MyApp.app/Frameworks/Zip.framework/Zip:arm64+0x30947) #4 0x1001ee267 in static Zip.Zip.quickUnzipFile (Foundation.URL, progress : Swift.Optional<(Swift.Double) -> ()>) throws -> Foundation.URL (/private/var/containers/Bundle/Application/D2FB8C94-89AB-46E6-B6C0-F41BEC122A30/MyApp.app/Frameworks/Zip.framework/Zip:arm64+0x26267) #5 0x1001ed297 in static Zip.Zip.quickUnzipFile (Foundation.URL) throws -> Foundation.URL (/private/var/containers/Bundle/Application/D2FB8C94-89AB-46E6-B6C0-F41BEC122A30/MyApp.app/Frameworks/Zip.framework/Zip:arm64+0x25297)
The text was updated successfully, but these errors were encountered:
I'm using Zip in my project and on very start I must unzip some package. So during address sanitizer tests I found that it complains on function quickUnzipFile(_ path: URL). So there is memory issue on very start of my project in Zip, thus can't test my code.
Issue is in Zip.swift: 195
The text was updated successfully, but these errors were encountered: