summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_system_unittest.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-07-18 17:29:46 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-19 13:19:10 +0000
commitd0f1054087094e5c353aead6bc3370635b69b278 (patch)
treef8ba92b91651d36f9ef441c9eee1dda7c5f59301 /core/fxcrt/fx_system_unittest.cpp
parent19817af6f201b29c784f5deb76dce403352044aa (diff)
downloadpdfium-d0f1054087094e5c353aead6bc3370635b69b278.tar.xz
Prevent more crashes in wcsftime.
BUG=chromium:738303 Change-Id: If36cdc0f53fc224c0c4c8cf775fd2c916f2d0add Reviewed-on: https://pdfium-review.googlesource.com/8210 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_system_unittest.cpp')
-rw-r--r--core/fxcrt/fx_system_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fx_system_unittest.cpp b/core/fxcrt/fx_system_unittest.cpp
index da616b4ee6..958d295a24 100644
--- a/core/fxcrt/fx_system_unittest.cpp
+++ b/core/fxcrt/fx_system_unittest.cpp
@@ -182,7 +182,7 @@ TEST(fxcrt, FXSYS_wcsftime) {
year_time.tm_min = 59;
year_time.tm_sec = 59;
- for (int year = -2500; year <= 2500; ++year) {
+ for (int year = -2500; year <= 8500; ++year) {
year_time.tm_year = year;
wchar_t year_buf[100] = {};
FXSYS_wcsftime(year_buf, FX_ArraySize(year_buf), L"%Y-%m-%dT%H:%M:%S",