Date: Wed, 10 May 2017 05:04:17 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r318133 - stable/11/sbin/ipfw Message-ID: <201705100504.v4A54HVv050305@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Wed May 10 05:04:16 2017 New Revision: 318133 URL: https://svnweb.freebsd.org/changeset/base/318133 Log: MFC r317667: In parse_range() validate both range values instead of checking the top value twice. PR: 202295 Modified: stable/11/sbin/ipfw/dummynet.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/ipfw/dummynet.c ============================================================================== --- stable/11/sbin/ipfw/dummynet.c Wed May 10 05:02:38 2017 (r318132) +++ stable/11/sbin/ipfw/dummynet.c Wed May 10 05:04:16 2017 (r318133) @@ -1881,7 +1881,7 @@ parse_range(int ac, char *av[], uint32_t av--; } if (v[1] < v[0] || - v[1] >= DN_MAX_ID-1 || + v[0] >= DN_MAX_ID-1 || v[1] >= DN_MAX_ID-1) { continue; /* invalid entry */ }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705100504.v4A54HVv050305>