diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-07-01 17:26:21 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-07-31 22:25:10 +0800 |
commit | 2db336dc75bf710bcf327545c61f2d215332ce99 (patch) | |
tree | 6f2aecd3cd84a4454040f21aedacb925d8f3210c /jbig2dec/jbig2_segment.h | |
parent | fd551bc0e40d2220b4343aeeefa7d9d3a64140eb (diff) | |
download | ghostpdl-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_segment.h')
-rw-r--r-- | jbig2dec/jbig2_segment.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jbig2dec/jbig2_segment.h b/jbig2dec/jbig2_segment.h index 0b61b6586..2fb9867b4 100644 --- a/jbig2dec/jbig2_segment.h +++ b/jbig2dec/jbig2_segment.h @@ -41,10 +41,10 @@ Jbig2Segment *jbig2_find_segment(Jbig2Ctx *ctx, uint32_t number); /* region segment info */ typedef struct { - int32_t width; - int32_t height; - int32_t x; - int32_t y; + uint32_t width; + uint32_t height; + uint32_t x; + uint32_t y; Jbig2ComposeOp op; uint8_t flags; } Jbig2RegionSegmentInfo; |