summaryrefslogtreecommitdiffstats
path: root/qpdf/test_large_file.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-10-06 01:42:39 +0200
committerJay Berkenbilt <ejb@ql.org>2013-10-18 16:45:14 +0200
commitac9c1f0d560540fda821b2775a475c71b47cb3a0 (patch)
tree20acd9a49718d0dd4efc15fd2e7b37a6c09c75a2 /qpdf/test_large_file.cc
parent4229457068d6a28cc11b506f127a7bb650ab18c1 (diff)
downloadqpdf-ac9c1f0d560540fda821b2775a475c71b47cb3a0.tar.zst
Security: replace operator[] with at
For std::string and std::vector, replace operator[] with at. This was done using an automated process. See README.hardening for details.
Diffstat (limited to 'qpdf/test_large_file.cc')
-rw-r--r--qpdf/test_large_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpdf/test_large_file.cc b/qpdf/test_large_file.cc
index 7ba5f6cb..a7ed7170 100644
--- a/qpdf/test_large_file.cc
+++ b/qpdf/test_large_file.cc
@@ -286,8 +286,8 @@ static void check_pdf(char const* filename)
{
int pageno = i + 1;
std::cout << "page " << pageno << " of " << npages << std::endl;
- check_page_contents(pageno, pages[i]);
- check_image(pageno, pages[i]);
+ check_page_contents(pageno, pages.at(i));
+ check_image(pageno, pages.at(i));
}
}