summaryrefslogtreecommitdiffstats
path: root/lz4.h
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-08-21 11:42:08 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-08-21 11:42:08 (GMT)
commit8860e61b4f2e563d1bd71920bcd8c2127e05fa5d (patch)
tree1def148fe2de48fb7d8b78d933bb7d65407ae007 /lz4.h
parenta2010203173de3f793f4f351ccc7df3377d27a2c (diff)
downloadlz4-8860e61b4f2e563d1bd71920bcd8c2127e05fa5d.zip
lz4-8860e61b4f2e563d1bd71920bcd8c2127e05fa5d.tar.gz
lz4-8860e61b4f2e563d1bd71920bcd8c2127e05fa5d.tar.bz2
Removed LZ4_decode() function code.
If you need to provide "isize" instead of "osize" to the decoder, please use LZ4_uncompress_unknownOutputSize(), which is safer. git-svn-id: https://lz4.googlecode.com/svn/trunk@12 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4.h')
-rw-r--r--lz4.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/lz4.h b/lz4.h
index f831048..6fcc039 100644
--- a/lz4.h
+++ b/lz4.h
@@ -92,18 +92,9 @@ LZ4_compressCtx :
// Deprecated decoding function
//*********************************
-int LZ4_decode (char* source, char* dest, int isize);
-
/*
-LZ4_decode : This version is faster, but deprecated
- return : the number of bytes in decoded buffer dest
- note 1 : isize is the input size, therefore the compressed size
- note 2 : destination buffer must be already allocated.
- The program calling the decoder must know in advance the size of decoded stream to properly allocate the destination buffer
- The destination buffer size must be at least "decompressedSize + 3 Bytes"
- This version is **unprotected** against malicious data packets designed to create buffer overflow errors.
- It is therefore not recommended in unsecure situations, such as Internet communications.
- This function is deprecated.
+LZ4_decode : Starting with r12, LZ4_decode() is no longer provided in LZ4 source code.
+ If you need to provide "isize" instead of "osize" to the decoder, please use LZ4_uncompress_unknownOutputSize(), which is safer.
*/