summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-09-12 02:09:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-09-12 02:09:04 +0000
commitbd09eb7048fff6ac7aadd4492d2ba27e0c402db6 (patch)
tree7aa3cda14eef00ac2071809fa04293d16c5610d7
parent8d4a1a42928b941672fb699d243cc281094f69ee (diff)
unchecked conversion from signed 64 to unsigned 32
-rw-r--r--usr.sbin/ifstated/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y
index 4211dc86107..bb6a209d560 100644
--- a/usr.sbin/ifstated/parse.y
+++ b/usr.sbin/ifstated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.17 2007/09/11 23:30:30 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.18 2007/09/12 02:09:03 deraadt Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@@ -257,7 +257,7 @@ if_test : interface '.' LINK '.' UP {
;
ext_test : STRING EVERY NUMBER {
- if ($3 <= 0) {
+ if ($3 <= 0 || $3 > UINT_MAX) {
yyerror("invalid interval: %d", $3);
free($1);
YYERROR;