diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2009-10-25 19:16:41 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2009-10-25 19:16:41 +0000 |
commit | ca626a8f838cb329c22b02bcb5c81538a09eea6f (patch) | |
tree | 7041ac80eea21c728bb4447eae9bedb3510814f0 /xdelta3/xdelta3-decode.h | |
parent | 0e486ef0fc9d4ea3aa05e120d09459e5cc7af098 (diff) |
Test crashes in recode test w/ "allow_fake_source" support, getting close?
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r-- | xdelta3/xdelta3-decode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h index 6412b47..9c812e7 100644 --- a/xdelta3/xdelta3-decode.h +++ b/xdelta3/xdelta3-decode.h | |||
@@ -444,7 +444,7 @@ xd3_decode_output_halfinst (xd3_stream *stream, xd3_hinst *inst) | |||
444 | if ((source->onblk != blksize) && | 444 | if ((source->onblk != blksize) && |
445 | (blkoff + take > source->onblk)) | 445 | (blkoff + take > source->onblk)) |
446 | { | 446 | { |
447 | IF_DEBUG1(DP(RINT "block %"Q"u onblk %u blksize %u blkoff %u take %u\n", | 447 | IF_DEBUG2(DP(RINT "block %"Q"u onblk %u blksize %u blkoff %u take %u\n", |
448 | block, | 448 | block, |
449 | source->onblk, | 449 | source->onblk, |
450 | blksize, | 450 | blksize, |
@@ -671,7 +671,7 @@ xd3_decode_emit (xd3_stream *stream) | |||
671 | 671 | ||
672 | if (stream->avail_out != stream->dec_tgtlen) | 672 | if (stream->avail_out != stream->dec_tgtlen) |
673 | { | 673 | { |
674 | IF_DEBUG1 (DP(RINT "AVAIL_OUT(%d) != DEC_TGTLEN(%d)\n", | 674 | IF_DEBUG2 (DP(RINT "AVAIL_OUT(%d) != DEC_TGTLEN(%d)\n", |
675 | stream->avail_out, stream->dec_tgtlen)); | 675 | stream->avail_out, stream->dec_tgtlen)); |
676 | stream->msg = "wrong window length"; | 676 | stream->msg = "wrong window length"; |
677 | return XD3_INVALID_INPUT; | 677 | return XD3_INVALID_INPUT; |
@@ -918,7 +918,7 @@ xd3_decode_input (xd3_stream *stream) | |||
918 | 918 | ||
919 | stream->dec_state = DEC_CPYLEN; | 919 | stream->dec_state = DEC_CPYLEN; |
920 | 920 | ||
921 | IF_DEBUG1 (DP(RINT "--------- TARGET WINDOW %"Q"u -----------\n", | 921 | IF_DEBUG2 (DP(RINT "--------- TARGET WINDOW %"Q"u -----------\n", |
922 | stream->current_window)); | 922 | stream->current_window)); |
923 | } | 923 | } |
924 | 924 | ||
@@ -1074,7 +1074,7 @@ xd3_decode_input (xd3_stream *stream) | |||
1074 | &src->cpyoff_blocks, | 1074 | &src->cpyoff_blocks, |
1075 | &src->cpyoff_blkoff); | 1075 | &src->cpyoff_blkoff); |
1076 | 1076 | ||
1077 | IF_DEBUG1(DP(RINT | 1077 | IF_DEBUG2(DP(RINT |
1078 | "decode cpyoff %"Q"u " | 1078 | "decode cpyoff %"Q"u " |
1079 | "cpyblkno %"Q"u " | 1079 | "cpyblkno %"Q"u " |
1080 | "cpyblkoff %u " | 1080 | "cpyblkoff %u " |