Change the "offset too large" message to more generic wording
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 2 Apr 2018 08:54:52 +0000 (10:54 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 3 Apr 2018 14:11:31 +0000 (16:11 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5826)

(cherry picked from commit 1518c55a796b058eff01f3cbf177f4b726c01d7c)

apps/asn1pars.c

index 6e7ed289d5de760c9105666da373d088adf425eb..5b0def76de49543e77c9022db4bbeb51fdec8bf2 100644 (file)
@@ -328,7 +328,7 @@ int MAIN(int argc, char **argv)
     }
 
     if (offset < 0 || offset >= num) {
-        BIO_printf(bio_err, "Error: offset too large\n");
+        BIO_printf(bio_err, "Error: offset out of range\n");
         goto end;
     }