Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Issue 1534953002: Fix a sentinel length value used in CFX_CMapByteStringToPtr::SetAt (Closed)

Created:
5 years ago by Oliver Chang
Modified:
5 years ago
Reviewers:
Lei Zhang, Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix a sentinel length value used in CFX_CMapByteStringToPtr::SetAt It looks like an key length of 0 was incorrectly assumed to denote an free entry. Fixes a memory leak in FPDFViewEmbeddertest.Crasher_451830 due to values with empty keys being incorrectly overwritten. R=tsepez@chromium.org, thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/391783579c5a8aad346b56903b51e6551600550b

Patch Set 1 : #

Patch Set 2 : type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M core/src/fxcrt/fx_basic_maps.cpp View 1 10 chunks +18 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Oliver Chang
ptal
5 years ago (2015-12-18 00:35:54 UTC) #6
Tom Sepez
LGTM. If you're feeling ambitious, this is one of those types that should just die ...
5 years ago (2015-12-18 00:42:26 UTC) #8
Oliver Chang
On 2015/12/18 00:42:26, Tom Sepez wrote: > LGTM. If you're feeling ambitious, this is one ...
5 years ago (2015-12-18 00:46:19 UTC) #9
Oliver Chang
5 years ago (2015-12-18 00:47:19 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
391783579c5a8aad346b56903b51e6551600550b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698