commit | b2bab1fee5345fef9c103cf9b20c381705485d4e | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Wed Jan 23 22:59:02 2019 +0000 |
committer | Chromium commit bot <commit-bot@chromium.org> | Wed Jan 23 22:59:02 2019 +0000 |
tree | 05c8d4d5c967e78023e046a5b1e62abbec39e3ee | |
parent | f3c92e4c43061bff8f7444c481ba3743febf91c1 [diff] |
Avoid a crash in CFXJSE_Value::ToString(). BUG=pdfium:1230 Change-Id: I328ef0e1462647323b1cbcd1acf76bd223bb3d40 Reviewed-on: https://pdfium-review.googlesource.com/c/48690 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp index eee98f0..7efb0a4 100644 --- a/fxjs/xfa/cjx_object.cpp +++ b/fxjs/xfa/cjx_object.cpp
@@ -1313,6 +1313,9 @@ return; } + if (pValue->IsEmpty()) + return; + WideString wsThickness = pValue->ToWideString(); for (int32_t i = 0; i < border->CountEdges(); ++i) { CXFA_Edge* edge = border->GetEdgeIfExists(i);