History

Make sure to indicate error upon unexpected OOB.

Sebastian Rasmussen committed 7 years ago

Commit 0fca4c11 parent 39a82091 file · +2 −2Browse files

Unified · Split

jbig2_text.c+2−2
@@ -178,7 +178,7 @@ jbig2_decode_text_region(Jbig2Ctx *ctx, Jbig2Segment *segment, · 177 unmodified lines
178178 goto cleanup1;
179179 }
180180 if (err > 0) {
181− jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "OOB decoding huffman code");
181+ code = jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "OOB decoding huffman code");
182182 goto cleanup1;
183183 }
184184 }
@@ -324,7 +324,7 @@ cleanup1: · 139 unmodified lines
324324 goto cleanup2;
325325 }
326326 if (code > 0) {
327− jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "OOB obtained when decoding symbol instance T coordinate");
327+ code = jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "OOB obtained when decoding symbol instance T coordinate");
328328 goto cleanup2;
329329 }
330330 T = STRIPT + CURT;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t