diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-02-07 19:48:06 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-02-07 19:48:06 +0200 |
commit | 6503fde658a5cdbdd907a788865470dd64771601 (patch) | |
tree | 5a00ae67d08d92291469cdc705393eaac0dae978 /src/liblzma/lzma/lzma_encoder_presets.c | |
parent | Fix wrong assertion. (diff) | |
download | xz-6503fde658a5cdbdd907a788865470dd64771601.tar.xz |
Subtle change to liblzma Block handling API.
lzma_block.version has to be initialized even for
lzma_block_header_decode(). This way a future version
of liblzma won't allocate memory in a way that an old
application doesn't know how to free it.
The subtlety of this change is that all current apps
using lzma_block_header_decode() will keep working for
now, because the only possible version value is zero,
and lzma_block_header_decode() unconditionally sets the
version to zero even now. Unless fixed, these apps will
break in the future if a new version of the Block options
is ever needed.
Diffstat (limited to 'src/liblzma/lzma/lzma_encoder_presets.c')
0 files changed, 0 insertions, 0 deletions