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
After I debugged this issue, I found that it's caused by that mode_fopen in mz_stream_posix_open should be "a+b" rather than "ab", otherwise reading central directory will fail, thus the exising central directory information will lose.
Later I found that if "a+b" mode is used, the central directory is correct, but the appended files cannot be extracted, I don't know what's wrong. Because I checked the code in mz_strm_posix.c and mz_strm_win32.c, seems their logic are the same.
Activity
guwangfeng commentedon Apr 13, 2018
After I debugged this issue, I found that it's caused by that mode_fopen in mz_stream_posix_open should be "a+b" rather than "ab", otherwise reading central directory will fail, thus the exising central directory information will lose.
guwangfeng commentedon Apr 13, 2018
Later I found that if "a+b" mode is used, the central directory is correct, but the appended files cannot be extracted, I don't know what's wrong. Because I checked the code in mz_strm_posix.c and mz_strm_win32.c, seems their logic are the same.
Fixed append mode does not work under linux. #250
nmoinvaz commentedon Apr 19, 2018
Thanks it should be fixed now.