Disallow invalid colspan values in RelocateTableRowCells().

BUG=chromium:913561

Change-Id: I5f184eb1a241c6b860d303c59ade3234b05eb7eb
Reviewed-on: https://pdfium-review.googlesource.com/c/50391
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/xfa/fxfa/layout/cxfa_itemlayoutprocessor.cpp b/xfa/fxfa/layout/cxfa_itemlayoutprocessor.cpp
index 7271930..a4e875c 100644
--- a/xfa/fxfa/layout/cxfa_itemlayoutprocessor.cpp
+++ b/xfa/fxfa/layout/cxfa_itemlayoutprocessor.cpp
@@ -217,6 +217,9 @@
     int32_t nOriginalColSpan =
         pLayoutChild->GetFormNode()->JSObject()->GetInteger(
             XFA_Attribute::ColSpan);
+    if (nOriginalColSpan <= 0 && nOriginalColSpan != -1)
+      continue;
+
     int32_t nColSpan = nOriginalColSpan;
     float fColSpanWidth = 0;
     if (nColSpan == -1 ||