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 /libtests/png_filter.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 'libtests/png_filter.cc')
-rw-r--r-- | libtests/png_filter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtests/png_filter.cc b/libtests/png_filter.cc index c3d4f646..2caf99fb 100644 --- a/libtests/png_filter.cc +++ b/libtests/png_filter.cc @@ -61,7 +61,7 @@ int main(int argc, char* argv[]) } bool encode = (strcmp(argv[1], "encode") == 0); char* filename = argv[2]; - int columns = atoi(argv[3]); + int columns = QUtil::string_to_int(argv[3]); try { |