block_buffer_decoder.c | block_buffer_decoder.c | |||
---|---|---|---|---|
skipping to change at line 16 | skipping to change at line 16 | |||
// Author: Lasse Collin | // Author: Lasse Collin | |||
// | // | |||
// This file has been put into the public domain. | // This file has been put into the public domain. | |||
// You can do whatever you want with this file. | // You can do whatever you want with this file. | |||
// | // | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
#include "block_decoder.h" | #include "block_decoder.h" | |||
extern LZMA_API(lzma_ret) | extern LZMA_API(lzma_ret) | |||
lzma_block_buffer_decode(lzma_block *block, lzma_allocator *allocator, | lzma_block_buffer_decode(lzma_block *block, const lzma_allocator *allocator , | |||
const uint8_t *in, size_t *in_pos, size_t in_size, | const uint8_t *in, size_t *in_pos, size_t in_size, | |||
uint8_t *out, size_t *out_pos, size_t out_size) | uint8_t *out, size_t *out_pos, size_t out_size) | |||
{ | { | |||
if (in_pos == NULL || (in == NULL && *in_pos != in_size) | if (in_pos == NULL || (in == NULL && *in_pos != in_size) | |||
|| *in_pos > in_size || out_pos == NULL | || *in_pos > in_size || out_pos == NULL | |||
|| (out == NULL && *out_pos != out_size) | || (out == NULL && *out_pos != out_size) | |||
|| *out_pos > out_size) | || *out_pos > out_size) | |||
return LZMA_PROG_ERROR; | return LZMA_PROG_ERROR; | |||
// Initialize the Block decoder. | // Initialize the Block decoder. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |