New issue
Advanced search Search tips

Issue 844046 link

Starred by 1 user

Issue metadata

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

Blocking:
issue 62400



Sign in to add a comment

Integer-overflow in CFX_RTFBreak::AppendChar_Arabic

Project Member Reported by ClusterFuzz, May 17 2018

Issue description

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

Fuzzer: libFuzzer_pdf_bidi_fuzzer
Job Type: libfuzzer_chrome_ubsan
Platform Id: linux

Crash Type: Integer-overflow
Crash Address: 
Crash State:
  CFX_RTFBreak::AppendChar_Arabic
  CFX_RTFBreak::AppendChar
  pdf_bidi_fuzzer.cc
  
Sanitizer: undefined (UBSAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=558305:558317

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

Issue filed automatically.

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

Comment 1 by ClusterFuzz, May 17 2018

Components: Internals>Plugins>PDF
Labels: Test-Predator-Auto-Components
Automatically applying components based on crash stacktrace and information from OWNERS files.

If this is incorrect, please apply the Test-Predator-Wrong-Components label.
Project Member

Comment 2 by ClusterFuzz, May 17 2018

Cc: dsinclair@chromium.org jam@chromium.org brucedaw...@chromium.org
Labels: ClusterFuzz-Auto-CC
Automatically adding ccs based on OWNERS file / target commit history.

If this is incorrect, please add ClusterFuzz-Wrong label.
Owner: dsinclair@chromium.org
Status: Assigned (was: Untriaged)
Blocking: 62400
Status: Started (was: Assigned)
https://pdfium-review.googlesource.com/c/pdfium/+/32714
Project Member

Comment 6 by bugdroid1@chromium.org, May 17 2018

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

commit c524fc91aa42a8e34b4daf9a67fa283e25f48560
Author: Dan Sinclair <dsinclair@chromium.org>
Date: Thu May 17 19:19:03 2018

More overflow checks in bidi code

There are several more places where the width is added to a characters
valid width in the bidi code. This CL changes all occurances to used a
check numeric.

Bug:  chromium:844046 
Change-Id: Idd8be3a4a576af626b5afa6f7cd04cc160b929d5
Reviewed-on: https://pdfium-review.googlesource.com/32714
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>

[modify] https://crrev.com/c524fc91aa42a8e34b4daf9a67fa283e25f48560/xfa/fgas/layout/cfx_rtfbreak.cpp

Status: Fixed (was: Started)
Project Member

Comment 8 by bugdroid1@chromium.org, May 17 2018

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

commit da12cb622e5eb00de5b3b73b8801288a764fc23c
Author: pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com <pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Date: Thu May 17 22:28:10 2018

Roll src/third_party/pdfium/ c647ed6de..dd8da5e2f (2 commits)

https://pdfium.googlesource.com/pdfium.git/+log/c647ed6de273..dd8da5e2f0f4

$ git log c647ed6de..dd8da5e2f --date=short --no-merges --format='%ad %ae %s'
2018-05-17 rharrison Add check that --font-dir is actually a directory
2018-05-17 dsinclair More overflow checks in bidi code

Created with:
  roll-dep src/third_party/pdfium
BUG= chromium:844046 


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: I5215012865ee665db1d6b36f1f4a1cc29d9dedad
Reviewed-on: https://chromium-review.googlesource.com/1064542
Reviewed-by: pdfium-chromium-autoroll <pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Commit-Queue: pdfium-chromium-autoroll <pdfium-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#559709}
[modify] https://crrev.com/da12cb622e5eb00de5b3b73b8801288a764fc23c/DEPS

Project Member

Comment 9 by ClusterFuzz, May 18 2018

ClusterFuzz has detected this issue as fixed in range 559687:559712.

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

Fuzzer: libFuzzer_pdf_bidi_fuzzer
Job Type: libfuzzer_chrome_ubsan
Platform Id: linux

Crash Type: Integer-overflow
Crash Address: 
Crash State:
  CFX_RTFBreak::AppendChar_Arabic
  CFX_RTFBreak::AppendChar
  pdf_bidi_fuzzer.cc
  
Sanitizer: undefined (UBSAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=558305:558317
Fixed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=559687:559712

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

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 10 by ClusterFuzz, May 18 2018

Labels: ClusterFuzz-Verified
Status: Verified (was: Fixed)
ClusterFuzz testcase 6184210940035072 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