New issue
Advanced search Search tips

Issue 775587 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Integer-overflow in CFX_Font::GetGlyphWidth

Project Member Reported by ClusterFuzz, Oct 17 2017

Issue description

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

Fuzzer: libFuzzer_pdf_font_fuzzer
Job Type: libfuzzer_chrome_ubsan
Platform Id: linux

Crash Type: Integer-overflow
Crash Address: 
Crash State:
  CFX_Font::GetGlyphWidth
  LoadCompositeFont
  FPDFText_LoadFont
  
Sanitizer: undefined (UBSAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=500968:501035

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

Issue filed automatically.

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

Comment 1 by ClusterFuzz, Oct 17 2017

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

If this is incorrect, please apply the Test-Predator-Wrong-Components label.
Owner: hnakashima@chromium.org
Status: Assigned (was: Untriaged)
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 19 2017

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

commit 943360187bb881fe94f14571c955e03f81203573
Author: Henrique Nakashima <hnakashima@chromium.org>
Date: Thu Oct 19 17:22:05 2017

Fix integer overflows in cfx_font.cpp.

Bug:  chromium:775587 
Change-Id: If927ebc0080a53d1c67f0aee5cab525fbcc24260
Reviewed-on: https://pdfium-review.googlesource.com/16290
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>

[modify] https://crrev.com/943360187bb881fe94f14571c955e03f81203573/core/fxge/cfx_font.cpp

Status: Fixed (was: Assigned)
Project Member

Comment 5 by ClusterFuzz, Oct 20 2017

ClusterFuzz has detected this issue as fixed in range 510151:510189.

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

Fuzzer: libFuzzer_pdf_font_fuzzer
Job Type: libfuzzer_chrome_ubsan
Platform Id: linux

Crash Type: Integer-overflow
Crash Address: 
Crash State:
  CFX_Font::GetGlyphWidth
  LoadCompositeFont
  FPDFText_LoadFont
  
Sanitizer: undefined (UBSAN)

Regressed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=500968:501035
Fixed: https://clusterfuzz.com/revisions?job=libfuzzer_chrome_ubsan&range=510151:510189

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

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 6 by ClusterFuzz, Oct 20 2017

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

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.
Labels: -Test-Predator-AutoComponents Test-Predator-Auto-Components

Sign in to add a comment