liblzma: Make lzma_code() check the reserved members in lzma_stream.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 23 Oct 2010 09:30:54 +0000 (12:30 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 23 Oct 2010 09:30:54 +0000 (12:30 +0300)
commit8c947e9291691629714dafb4536c718b6cc24fbd
tree3273ec37ac1c88e56ece94297f492da4871695c6
parente61d85e082743ebd2dd0ff28fc0a82482ede0538
liblzma: Make lzma_code() check the reserved members in lzma_stream.

If any of the reserved members in lzma_stream are non-zero
or non-NULL, LZMA_OPTIONS_ERROR is returned. It is possible
that a new feature in the future is indicated by just setting
a reserved member to some other value, so the old liblzma
version need to catch it as an unsupported feature.
src/liblzma/common/common.c