Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108587093
D29782.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
625 B
Referenced Files
None
Subscribers
None
D29782.diff
View Options
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -597,6 +597,23 @@
return;
}
+ /* range checks */
+ if (cu->cu_message_age >= cu->cu_max_age) {
+ return;
+ }
+ if (cu->cu_max_age < BSTP_MIN_MAX_AGE ||
+ cu->cu_max_age > BSTP_MAX_MAX_AGE) {
+ return;
+ }
+ if (cu->cu_forward_delay < BSTP_MIN_FORWARD_DELAY ||
+ cu->cu_forward_delay > BSTP_MAX_FORWARD_DELAY) {
+ return;
+ }
+ if (cu->cu_hello_time < BSTP_MIN_HELLO_TIME ||
+ cu->cu_hello_time > BSTP_MAX_HELLO_TIME) {
+ return;
+ }
+
type = bstp_pdu_rcvtype(bp, cu);
switch (type) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 4:26 PM (6 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16200831
Default Alt Text
D29782.diff (625 B)
Attached To
Mode
D29782: bridgestp: validate timer values in config BPDU
Attached
Detach File
Event Timeline
Log In to Comment