We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f501fd commit 66e585cCopy full SHA for 66e585c
adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py
@@ -95,6 +95,10 @@ def __init__(
95
):
96
self._debug = debug
97
self._response_timeout = response_timeout
98
+
99
+ # Prevent buffer overrun in send_dhcp_message()
100
+ if len(mac_address) != 6:
101
+ raise ValueError("The MAC address must be 6 bytes.")
102
self._mac_address = mac_address
103
104
# Set socket interface
0 commit comments