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
178 goto cleanup1;178 goto cleanup1;
179 }179 }
180 if (err > 0) {180 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");
182 goto cleanup1;182 goto cleanup1;
183 }183 }
184 }184 }
@@ -324,7 +324,7 @@ cleanup1: · 139 unmodified lines
324 goto cleanup2;324 goto cleanup2;
325 }325 }
326 if (code > 0) {326 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");
328 goto cleanup2;328 goto cleanup2;
329 }329 }
330 T = STRIPT + CURT;330 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