diff options
author | Jay Berkenbilt <ejb@ql.org> | 2017-08-29 18:27:59 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-08-29 18:28:32 +0200 |
commit | 1868a10f8b06631362618bfc85ca8646da4b4b71 (patch) | |
tree | c3029002f777a9904bfa3dff559daea989c79025 /qpdf/pdf_from_scratch.cc | |
parent | 742190bd98c0981a07cb39a8eae1e99d909ad5ae (diff) | |
download | qpdf-1868a10f8b06631362618bfc85ca8646da4b4b71.tar.zst |
Replace all atoi calls with QUtil::string_to_int
The latter catches underflow/overflow.
Diffstat (limited to 'qpdf/pdf_from_scratch.cc')
-rw-r--r-- | qpdf/pdf_from_scratch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpdf/pdf_from_scratch.cc b/qpdf/pdf_from_scratch.cc index 10ef5512..967025df 100644 --- a/qpdf/pdf_from_scratch.cc +++ b/qpdf/pdf_from_scratch.cc @@ -107,7 +107,7 @@ int main(int argc, char* argv[]) try { - int n = atoi(argv[1]); + int n = QUtil::string_to_int(argv[1]); runtest(n); } catch (std::exception& e) |