From 1868a10f8b06631362618bfc85ca8646da4b4b71 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 29 Aug 2017 12:27:59 -0400 Subject: Replace all atoi calls with QUtil::string_to_int The latter catches underflow/overflow. --- libtests/png_filter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtests/png_filter.cc') 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 { -- cgit v1.2.3-54-g00ecf