diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-04-13 20:04:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-13 20:04:27 +0000 |
commit | 97b47dc407e772a82782d5d64de5560992df2bf9 (patch) | |
tree | 7c2c450355d4fde80381d14f61f3a94ae9242aa1 /core/fpdfapi | |
parent | ecc0123613fa6f455a5a0b498695fb2ea54eed64 (diff) | |
download | pdfium-97b47dc407e772a82782d5d64de5560992df2bf9.tar.xz |
Add test for circular CPDF_Function::Load().
Bug: chromium:830221
Change-Id: Ia96086a1b930600a4fb9054123c867d1c8b301eb
Reviewed-on: https://pdfium-review.googlesource.com/30671
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/page/cpdf_function_embeddertest.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_function_embeddertest.cpp b/core/fpdfapi/page/cpdf_function_embeddertest.cpp new file mode 100644 index 0000000000..521cc0f814 --- /dev/null +++ b/core/fpdfapi/page/cpdf_function_embeddertest.cpp @@ -0,0 +1,16 @@ +// Copyright 2018 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. + +#include "testing/embedder_test.h" +#include "testing/gtest/include/gtest/gtest.h" + +class CPDF_FunctionEmbeddertest : public EmbedderTest {}; + +TEST_F(CPDF_FunctionEmbeddertest, Crasher_830221) { + EXPECT_TRUE(OpenDocument("bug_830221.pdf")); + FPDF_PAGE page = LoadPage(0); + ASSERT_TRUE(page); + RenderLoadedPage(page); + UnloadPage(page); +} |