summaryrefslogtreecommitdiff
path: root/jbig2dec/jbig2_page.h
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-07-01 17:26:21 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-07-31 22:25:10 +0800
commit2db336dc75bf710bcf327545c61f2d215332ce99 (patch)
tree6f2aecd3cd84a4454040f21aedacb925d8f3210c /jbig2dec/jbig2_page.h
parentfd551bc0e40d2220b4343aeeefa7d9d3a64140eb (diff)
downloadghostpdl-2db336dc75bf710bcf327545c61f2d215332ce99.tar.gz
jbig2dec: Read region segment height/width/x/y as unsigned.
The specification in 5.4.4 states that numbers are unsigned unless otherwise stated. 7.4.1.1 through 7.4.1.4 specifying the region segment height, width, x and y do not mention that these fields are signed, hence they ought to read and handled as unsigned.
Diffstat (limited to 'jbig2dec/jbig2_page.h')
-rw-r--r--jbig2dec/jbig2_page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/jbig2dec/jbig2_page.h b/jbig2dec/jbig2_page.h
index 316824f04..5957b7624 100644
--- a/jbig2dec/jbig2_page.h
+++ b/jbig2dec/jbig2_page.h
@@ -48,6 +48,6 @@ struct _Jbig2Page {
int jbig2_page_info(Jbig2Ctx *ctx, Jbig2Segment *segment, const uint8_t *segment_data);
int jbig2_end_of_stripe(Jbig2Ctx *ctx, Jbig2Segment *segment, const uint8_t *segment_data);
int jbig2_end_of_page(Jbig2Ctx *ctx, Jbig2Segment *segment, const uint8_t *segment_data);
-int jbig2_page_add_result(Jbig2Ctx *ctx, Jbig2Page *page, Jbig2Image *src, int x, int y, Jbig2ComposeOp op);
+int jbig2_page_add_result(Jbig2Ctx *ctx, Jbig2Page *page, Jbig2Image *src, uint32_t x, uint32_t y, Jbig2ComposeOp op);
#endif /* _JBIG2_PAGE_H */