stream_buffer_decoder.c   stream_buffer_decoder.c 
skipping to change at line 17 skipping to change at line 17
// //
// 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 "stream_decoder.h" #include "stream_decoder.h"
extern LZMA_API(lzma_ret) extern LZMA_API(lzma_ret)
lzma_stream_buffer_decode(uint64_t *memlimit, uint32_t flags, lzma_stream_buffer_decode(uint64_t *memlimit, uint32_t flags,
lzma_allocator *allocator, 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)
{ {
// Sanity checks // Sanity checks
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;
 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/