There is no practical way to generate an underlength ARP packet since an ARP packet is always padded up to the minimum Ethernet frame length (or dropped by the receiving Ethernet hardware if incorrectly padded), but the absence of an explicit check causes warnings from some analysis tools. Fix by adding an explicit check on the I/O buffer length. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
99 |
|
99 |
|
100 |
|
100 |
|
101 |
|
101 |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
102 |
|
112 |
|
|
|
||
139 |
|
139 |
|
140 |
|
140 |
|
141 |
|
141 |
|
|
142 |
|
|
142 |
|
143 |
|
143 |
|
144 |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
144 |
|
151 |
|
145 |
|
152 |
|
146 |
|
153 |
|