From: jsg Date: Mon, 1 Mar 2021 08:05:40 +0000 (+0000) Subject: off by one in bounds test X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=895a1e8b54e1642bff18ac4d7bc94f95c056b1d4;p=openbsd off by one in bounds test ok florian@ --- diff --git a/usr.sbin/rad/parse.y b/usr.sbin/rad/parse.y index fe2e922c958..c7b918f4086 100644 --- a/usr.sbin/rad/parse.y +++ b/usr.sbin/rad/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.17 2021/01/19 17:38:41 florian Exp $ */ +/* $OpenBSD: parse.y,v 1.18 2021/03/01 08:05:40 jsg Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -377,7 +377,7 @@ searchoptsl : STRING { err(1, "%s", __func__); if ((len = strlcpy(ra_dnssl_conf->search, $1, - sizeof(ra_dnssl_conf->search))) > + sizeof(ra_dnssl_conf->search))) >= sizeof(ra_dnssl_conf->search)) { yyerror("search string too long"); free($1);