stream_buffer_encoder.c   stream_buffer_encoder.c 
skipping to change at line 42 skipping to change at line 42
// the Stream exceeding LZMA_VLI_MAX (theoretically possible on // the Stream exceeding LZMA_VLI_MAX (theoretically possible on
// 64-bit systems). // 64-bit systems).
if (my_min(SIZE_MAX, LZMA_VLI_MAX) - block_bound < HEADERS_BOUND) if (my_min(SIZE_MAX, LZMA_VLI_MAX) - block_bound < HEADERS_BOUND)
return 0; return 0;
return block_bound + HEADERS_BOUND; return block_bound + HEADERS_BOUND;
} }
extern LZMA_API(lzma_ret) extern LZMA_API(lzma_ret)
lzma_stream_buffer_encode(lzma_filter *filters, lzma_check check, lzma_stream_buffer_encode(lzma_filter *filters, lzma_check check,
lzma_allocator *allocator, const uint8_t *in, size_t in_size const lzma_allocator *allocator,
, const uint8_t *in, size_t in_size,
uint8_t *out, size_t *out_pos_ptr, size_t out_size) uint8_t *out, size_t *out_pos_ptr, size_t out_size)
{ {
// Sanity checks // Sanity checks
if (filters == NULL || (unsigned int)(check) > LZMA_CHECK_ID_MAX if (filters == NULL || (unsigned int)(check) > LZMA_CHECK_ID_MAX
|| (in == NULL && in_size != 0) || out == NULL || (in == NULL && in_size != 0) || out == NULL
|| out_pos_ptr == NULL || *out_pos_ptr > out_size) || out_pos_ptr == NULL || *out_pos_ptr > out_size)
return LZMA_PROG_ERROR; return LZMA_PROG_ERROR;
if (!lzma_check_is_supported(check)) if (!lzma_check_is_supported(check))
return LZMA_UNSUPPORTED_CHECK; return LZMA_UNSUPPORTED_CHECK;
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 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/