New issue
Advanced search Search tips

Issue 666892 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug

Blocking:
issue 666683
issue 666843



Sign in to add a comment

Undefined-shift in opj_get_all_encoding_parameters

Project Member Reported by ClusterFuzz, Nov 18 2016

Issue description

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=4744148382121984

Fuzzer: libfuzzer_pdf_jpx_fuzzer
Job Type: libfuzzer_chrome_ubsan
Platform Id: linux

Crash Type: Undefined-shift
Crash Address: 
Crash State:
  opj_get_all_encoding_parameters
  opj_pi_create_decode
  opj_t2_decode_packets
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=libfuzzer_chrome_ubsan&range=395640:395746

Minimized Testcase (0.22 Kb): https://cluster-fuzz.appspot.com/download/AMIfv94yUkS4yThKlWA9z4a-LtzzPSXf-KGx5UpBoCyfnsg5s0mdGHdTdRUzsZKLJdG57gYaWX2Ad_ln8mJB7dsOsq_riVNcTPsNbk3IxjKTDaGzhy8iLXMSqmHL6vlwAsD7OqrlCReN4b1vmhann_L6suzyHTIRsQ?testcase_id=4744148382121984

Issue filed automatically.

See https://chromium.googlesource.com/chromium/src/+/master/testing/libfuzzer/reproducing.md for more information.
 

Comment 1 by ajha@chromium.org, Nov 21 2016

Components: Internals>Plugins>PDF
Labels: M-55

Comment 2 by npm@chromium.org, Nov 21 2016

Owner: och...@chromium.org
Status: Assigned (was: Untriaged)
The problem is at
CJPX_Decoder::Init(unsigned char const*, unsigned int) third_party/pdfium/core/fxcodec/codec/fx_codec_jpx_opj.cpp:773

Oliver, do you have time to take a look at this? If not, feel free to assign back.

Comment 3 by och...@chromium.org, Nov 21 2016

Owner: npm@chromium.org
Sorry, don't have time for this :(
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 22 2016

Labels: -Restrict-View-EditIssue
Removing EditIssue view restrictions from ClusterFuzz filed bugs. If you believe that this issue should still be restricted, please reapply the label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Blocking: 666843
Blocking: 666683

Comment 7 by npm@chromium.org, Jan 4 2017

Not sure what the right way to fix this is, and it doesn't seem to be solved upstream. Will take a look later, or anyone feel free to take this.

Comment 8 by npm@chromium.org, Jan 16 2017

Filed a bug on github:
https://github.com/uclouvain/openjpeg/issues/885
Project Member

Comment 9 by ClusterFuzz, May 5 2017

ClusterFuzz has detected this issue as fixed in range 469455:469504.

Detailed report: https://clusterfuzz.com/testcase?key=4744148382121984

Fuzzer: libfuzzer_pdf_jpx_fuzzer
Job Type: libfuzzer_chrome_ubsan
Platform Id: linux

Crash Type: Undefined-shift
Crash Address: 
Crash State:
  opj_get_all_encoding_parameters
  opj_pi_create_decode
  opj_t2_decode_packets
  
Sanitizer: undefined (UBSAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=395640:395746
Fixed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=469455:469504

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=4744148382121984


See https://chromium.googlesource.com/chromium/src/+/master/testing/libfuzzer/reproducing.md for more information.

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Project Member

Comment 10 by ClusterFuzz, May 5 2017

Labels: ClusterFuzz-Verified
Status: Verified (was: Assigned)
ClusterFuzz testcase 4744148382121984 is verified as fixed, so closing issue.

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.
Bugdroid forgot to mention this was fixed in https://pdfium.googlesource.com/pdfium/+/34f735c9ef34b3bb6493016c7fbeb6df76cf31f5

Sign in to add a comment