Zip icon indicating copy to clipboard operation
Zip copied to clipboard

Address Sanitizer: memcpy-param-overlap

Open JustinGanzer opened this issue 4 years ago • 0 comments

Hi all, I've encountered an issue with Address Sanitizer turned on.

First of all, versions: Test Device: Simulator iOS 13.5 Repository Tag: 2.0.0 XCode: 11.5

Issue: Address Sanitizer stops app with the message: AddressSanitizer: memcpy-param-overlap: memory ranges [0x63100053c800,0x6310005491b4) and [0x63100053fe4c, 0x63100054c800) overlap

Location of error: Zip.swift line 212 => unzip.c line 1361.

Thread info:

thread #3: tid = 0xf21a, 0x000000011743bfa0 libclang_rt.asan_iossim_dynamic.dylib`__asan::AsanDie(), queue = 'UnzipSystem.SerialQueue.3C85DACA-BA4B-4B6C-9A74-A611DFA81EC8', stop reason = AddressSanitizer detected: memcpy-param-overlap

{
  "access_size" : 0,
  "access_type" : 0,
  "address" : 0,
  "description" : "memcpy-param-overlap",
  "instrumentation_class" : "AddressSanitizer",
  "pc" : 0,
  "stop_type" : "fatal_error"
}

How to reproduce?

There's not much needed to reproduce the error. With Address Sanitizer turned on, and a single serial thread calling up the try Zip.unzipFile(original, destination: destination, overwrite: true, password: nil) function, the error should reveal itself. I'm not aware of anything else going on.

JustinGanzer avatar Jun 09 '20 06:06 JustinGanzer