DescriptionFix subtle issues in opj_skip_from_memory and add unit tests.
Follow on to https://codereview.chromium.org/990683002/.
This more closely mimics what fseek() actually does, so as
to avoid subtle bugs down the road.
Move the DecodeData struct into a header so the test can
use it, and provide a constructor for it.
Along the way, I added include guards, removed the p_
prefix from some non-pointer vars, fixed some IWYU, and
resolved some signed/unsigned comparison warnings with
careful casting.
BUG=452671
R=jun_fang@foxitsoftware.com, thestig@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/d1f792ac1ba25494b44e664d4a427127299d05e6
Patch Set 1 #Patch Set 2 : Fix type botch. #
Total comments: 6
Patch Set 3 : GN #Patch Set 4 : Add one more useless test. #
Total comments: 2
Messages
Total messages: 10 (2 generated)
|