aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/hardware.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-02-07 19:48:06 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-02-07 19:48:06 +0200
commit6503fde658a5cdbdd907a788865470dd64771601 (patch)
tree5a00ae67d08d92291469cdc705393eaac0dae978 /src/liblzma/api/lzma/hardware.h
parentFix wrong assertion. (diff)
downloadxz-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/api/lzma/hardware.h')
0 files changed, 0 insertions, 0 deletions