New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 836872 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Out-of-memory in pdf_codec_jbig2_fuzzer

Project Member Reported by ClusterFuzz, Apr 25 2018

Issue description

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

Fuzzer: libFuzzer_pdf_codec_jbig2_fuzzer
Job Type: libfuzzer_chrome_asan
Platform Id: linux

Crash Type: Out-of-memory (exceeds 2048 MB)
Crash Address: 
Crash State:
  pdf_codec_jbig2_fuzzer
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_asan&range=421372:421456

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

Issue filed automatically.

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

Comment 1 by ClusterFuzz, Apr 25 2018

Labels: OS-Mac
Cc: brajkumar@chromium.org
Components: Internals>Plugins>PDF
Labels: -Pri-1 M-66 Test-Predator-Wrong Pri-2
Owner: thestig@chromium.org
Status: Assigned (was: Untriaged)
> Predator was unable to identify any culprit changelists for this test case. 

> This issue looks similar to  bug 834557 , hence assigning to thestig@ for more updates.

Thanks!
Project Member

Comment 3 by bugdroid1@chromium.org, Apr 27 2018

The following revision refers to this bug:
  https://pdfium.googlesource.com/pdfium/+/0e3635c59e79e8ca782412fa1bcf377c7c4f980e

commit 0e3635c59e79e8ca782412fa1bcf377c7c4f980e
Author: Lei Zhang <thestig@chromium.org>
Date: Fri Apr 27 16:53:49 2018

Sanitize another image size in CJBig2_Context::parseHalftoneRegion().

BUG= chromium:836872 

Change-Id: I0362fd7708043648bffa26c9248b401ea2793a21
Reviewed-on: https://pdfium-review.googlesource.com/31510
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>

[modify] https://crrev.com/0e3635c59e79e8ca782412fa1bcf377c7c4f980e/core/fxcodec/jbig2/JBig2_Context.cpp

Status: Fixed (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Apr 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3a094799dfe4dbca1c40fe6f4b5eef00d77ab214

commit 3a094799dfe4dbca1c40fe6f4b5eef00d77ab214
Author: pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com <pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Date: Fri Apr 27 19:46:10 2018

Roll src/third_party/pdfium/ 575f23833..3241bb3e9 (5 commits)

https://pdfium.googlesource.com/pdfium.git/+log/575f238334d1..3241bb3e98c0

$ git log 575f23833..3241bb3e9 --date=short --no-merges --format='%ad %ae %s'
2018-04-27 thestig Fix style for many jbig2 methods.
2018-04-27 thestig Add CJBig2_Image::IsValidImageSize() helper method.
2018-04-27 thestig Sanitize another image size in CJBig2_Context::parseHalftoneRegion().
2018-04-27 rharrison Updated libtiff 4.0.8->4.0.9
2018-04-27 thestig Sanitize the SBNUMINSTANCES value in the JBIG2 decoder.

Created with:
  roll-dep src/third_party/pdfium
BUG= chromium:836872 , chromium:837192 


The AutoRoll server is located here: https://pdfium-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.


TBR=dsinclair@chromium.org

Change-Id: I836d14f6bf7661851deff78a72360d0031648d18
Reviewed-on: https://chromium-review.googlesource.com/1033337
Commit-Queue: pdfium-chromium-autoroll <pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Reviewed-by: pdfium-chromium-autoroll <pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#554464}
[modify] https://crrev.com/3a094799dfe4dbca1c40fe6f4b5eef00d77ab214/DEPS

Project Member

Comment 6 by ClusterFuzz, Apr 28 2018

ClusterFuzz has detected this issue as fixed in range 554444:554506.

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

Fuzzer: libFuzzer_pdf_codec_jbig2_fuzzer
Job Type: libfuzzer_chrome_asan
Platform Id: linux

Crash Type: Out-of-memory (exceeds 2048 MB)
Crash Address: 
Crash State:
  pdf_codec_jbig2_fuzzer
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_asan&range=421372:421456
Fixed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_asan&range=554444:554506

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

See https://chromium.googlesource.com/chromium/src/+/master/testing/libfuzzer/reference.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 7 by ClusterFuzz, Apr 28 2018

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

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.

Sign in to add a comment