Revision ebf7bba090e617fd841177e6ea3de3a129c31a97 authored by Vladimir Sementsov-Ogievskiy on 14 July 2016, 16:59:25 UTC, committed by Max Reitz on 26 July 2016, 15:46:37 UTC
There are no needs to allocate more than one cluster, as we set avail_out for deflate to one cluster. Zlib docs (http://www.zlib.net/manual.html) says: "deflate compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full." So, deflate will not write more than avail_out to output buffer. If there is not enough space in output buffer for compressed data (it may be larger than input data) deflate just returns Z_OK. (if all data is compressed and written to output buffer deflate returns Z_STREAM_END). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-id: 1468515565-81313-1-git-send-email-vsementsov@virtuozzo.com Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
1 parent f49ee63
File | Mode | Size |
---|---|---|
SLOF @ e3d0572 | ||
ipxe @ 0418631 | ||
openbios @ e79bca6 | ||
openhackware @ c559da7 | ||
qemu-palcode @ c87a926 | ||
seabios @ e2fc41e | ||
sgabios @ 23d4749 | ||
u-boot @ 2072e72 | ||
vgabios @ 19ea12c | ||
Makefile | -rw-r--r-- | 5.4 KB |
config.seabios-128k | -rw-r--r-- | 272 bytes |
config.seabios-256k | -rw-r--r-- | 71 bytes |
config.vga-cirrus | -rw-r--r-- | 60 bytes |
config.vga-isavga | -rw-r--r-- | 59 bytes |
config.vga-qxl | -rw-r--r-- | 128 bytes |
config.vga-stdvga | -rw-r--r-- | 59 bytes |
config.vga-virtio | -rw-r--r-- | 128 bytes |
config.vga-vmware | -rw-r--r-- | 128 bytes |
configure-seabios.sh | -rwxr-xr-x | 111 bytes |
Computing file changes ...