Lasse Collin
71b9380145
liblzma: Validate encoder arguments better.
...
The biggest problem was that the integrity check type
wasn't validated, and e.g. lzma_easy_buffer_encode()
would create a corrupt .xz Stream if given an unsupported
Check ID. Luckily applications don't usually try to use
an unsupport Check ID, so this bug is unlikely to cause
many real-world problems.
2011-04-11 13:21:28 +03:00
Lasse Collin
920a69a8d8
Rename MIN() and MAX() to my_min() and my_max().
...
This should avoid some minor portability issues.
2010-05-26 10:36:46 +03:00
Lasse Collin
083c23c680
Make the raw value of the Check field available to applications
...
via lzma_block structure.
This changes ABI but not doesn't break API.
2009-05-26 14:48:48 +03:00
Lasse Collin
02ddf09bc3
Put the interesting parts of XZ Utils into the public domain.
...
Some minor documentation cleanups were made at the same time.
2009-04-13 11:27:40 +03:00
Lasse Collin
22a0c6dd94
Modify LZMA_API macro so that it works on Windows with
...
other compilers than MinGW. This may hurt readability
of the API headers slightly, but I don't know any
better way to do this.
2009-02-02 20:14:03 +02:00
Lasse Collin
9ec80355a7
Add some single-call buffer-to-buffer coding functions.
2009-01-20 16:37:27 +02:00