summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-second.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-second.h')
-rw-r--r--xdelta3/xdelta3-second.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xdelta3/xdelta3-second.h b/xdelta3/xdelta3-second.h
index 098a5d5..309c947 100644
--- a/xdelta3/xdelta3-second.h
+++ b/xdelta3/xdelta3-second.h
@@ -140,6 +140,12 @@ xd3_decode_secondary (xd3_stream *stream,
140 return ret; 140 return ret;
141 } 141 }
142 142
143 if (dec_size == 0)
144 {
145 stream->msg = "secondary decoder invalid output size";
146 return XD3_INVALID_INPUT;
147 }
148
143 out_used = sect->copied2; 149 out_used = sect->copied2;
144 150
145 if ((ret = stream->sec_type->decode (stream, *sec_streamp, 151 if ((ret = stream->sec_type->decode (stream, *sec_streamp,