diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-06-26 19:09:39 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-26 19:09:39 +0000 |
commit | ca386ad150be28116997b713056a4a2197c7b7e8 (patch) | |
tree | b211e2512b15581bbd4b54f12172d2e125d5d1a3 /xfa | |
parent | 0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7 (diff) | |
download | pdfium-ca386ad150be28116997b713056a4a2197c7b7e8.tar.xz |
Assert that tab width assumption holds in CFX_RTFBreak.
Bug: chromium:844367
Change-Id: I3cbe5d97a913c734c3d54657a2fb47b30cc362fe
Reviewed-on: https://pdfium-review.googlesource.com/36191
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/fgas/layout/cfx_rtfbreak.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xfa/fgas/layout/cfx_rtfbreak.cpp b/xfa/fgas/layout/cfx_rtfbreak.cpp index c478d98c72..de8703fb2d 100644 --- a/xfa/fgas/layout/cfx_rtfbreak.cpp +++ b/xfa/fgas/layout/cfx_rtfbreak.cpp @@ -158,6 +158,7 @@ void CFX_RTFBreak::AppendChar_Tab(CFX_Char* pCurChar) { iSafeCharWidth = iCharWidth; } else { // Tab width is >= 160000, so this part does not need to be checked. + ASSERT(m_iTabWidth >= 160000); iSafeCharWidth = iLineWidth / m_iTabWidth + 1; iSafeCharWidth *= m_iTabWidth; } |