daltoniam/tarkit — pull request #5 by hanumanthan (2014-11-11 08:37:04+00:00)
Title: Placing a continue statement in the inflate/deflate loop while encountering buffer error as per zlib documentation

Hi,

I am using Tarkit to inflate and untar **.tar.gz** files in iOS. This library is fantastic. Thanks.

The issue I faced is Tarkit is good for small files but started facing issues for files > 20Mb. While debugging, I found that while inflating, a **buffer error** is thrown due to either avail_in or avail_out becoming zero. So a status(being -5) check for Z_OK fails and returns from the fileInflate method and the ***filePath hasSuffix:@".tar*** conditional check doesn't pass. This results in the file being uninflated and untarred.

I had placed a ***continue*** statement around inflate and deflate when buffer error is encountered as per the zlib documentation and now it works as expected. Please have a look and accept my pull request or let me know if you need any further details.