diff options
author | 2005-04-28 10:12:58 +0000 | |
---|---|---|
committer | 2005-04-28 10:12:58 +0000 | |
commit | 0e4b5b6f2d9f757c0b8018e8d58d2887f66fb4b0 (patch) | |
tree | 245a3dd392463d30f8a7b36bdd495ce3343e089b | |
parent | more snprintf checking. ok krw@ (diff) | |
download | wireguard-openbsd-0e4b5b6f2d9f757c0b8018e8d58d2887f66fb4b0.tar.xz wireguard-openbsd-0e4b5b6f2d9f757c0b8018e8d58d2887f66fb4b0.zip |
more vsnprintf checking. ok cloder@
-rw-r--r-- | usr.sbin/bind/lib/isccfg/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/isccfg/parser.c b/usr.sbin/bind/lib/isccfg/parser.c index 76aa71625b0..3f84a95ff51 100644 --- a/usr.sbin/bind/lib/isccfg/parser.c +++ b/usr.sbin/bind/lib/isccfg/parser.c @@ -2117,7 +2117,7 @@ parser_complain(cfg_parser_t *pctx, isc_boolean_t is_warning, current_file(pctx), pctx->line); len = vsnprintf(message, sizeof(message), format, args); - if (len >= sizeof(message)) + if (len == -1 || len >= sizeof(message)) FATAL_ERROR(__FILE__, __LINE__, "error message would overflow"); |