commit | b7480fb86bfa11be44b6bedec3fe7a2860c53469 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Nov 04 17:54:32 2015 -0800 |
committer | Christopher Ferris <cferris@google.com> | Thu Nov 05 10:48:05 2015 -0800 |
tree | f279334c29fec5c489b2ac50efca33d9d4c15378 | |
parent | cd91b048bc798aa0785596df719a71941b303ac9 [diff] |
Fix bug in writing zips. The code does not handle an edge case where writing a compressed image can overflow the avail_out data when doing a flush. Add a loop to keep writing the data while deflate indicates that it doesn't have enough space to write out the compressed data during the flush. Change-Id: I1f1d1646457ed9b67ed24f6582688c300186c23c