From f96404951bc1505887e2567088b59206316c9297 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 5 Jan 2015 14:35:41 -0800 Subject: Fix an array size mismatch. The g_UnicodeData_Normalization_Map2 array is initialized with a size of 1724 in core\src\fpdftext\unicodenormalizationdata.cpp but its size is 1734 (+10) in core\src\fpdftext\unicodenormalization.cpp, 1724 seems to be the real size (i.e. there's 1724 values in the initialization list). BUG=446057 Original Author: sebmarchand@chromium.org Original CL: https://codereview.chromium.org/837523002/ Review URL: https://codereview.chromium.org/812843004 --- core/src/fpdftext/unicodenormalization.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/fpdftext/unicodenormalization.cpp b/core/src/fpdftext/unicodenormalization.cpp index 1d36b8576a..c36cad775f 100644 --- a/core/src/fpdftext/unicodenormalization.cpp +++ b/core/src/fpdftext/unicodenormalization.cpp @@ -1,13 +1,13 @@ // Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - + // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../include/fpdftext/fpdf_text.h" extern const FX_WCHAR g_UnicodeData_Normalization[65536]; extern const FX_WCHAR g_UnicodeData_Normalization_Map1[5376]; -extern const FX_WCHAR g_UnicodeData_Normalization_Map2[1734]; +extern const FX_WCHAR g_UnicodeData_Normalization_Map2[1724]; extern const FX_WCHAR g_UnicodeData_Normalization_Map3[1164]; extern const FX_WCHAR g_UnicodeData_Normalization_Map4[488]; FX_LPCWSTR g_UnicodeData_Normalization_Maps[5] = { -- cgit v1.2.3