summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto_lldp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto_lldp.c b/proto_lldp.c
index 889169a..3d1e8bf 100644
--- a/proto_lldp.c
+++ b/proto_lldp.c
@@ -399,11 +399,15 @@ static void lldp(struct pkt_buff *pkt)
}
tlv_info_str++;
+
+ if (tlv_len - mgmt_alen < sizeof(uint32_t))
+ goto out_invalid;
tprintf(", Iface Number %u", EXTRACT_32BIT(tlv_info_str));
tlv_info_str += 4;
mgmt_oidlen = *tlv_info_str;
- if (tlv_len - mgmt_alen - sizeof(uint32_t) - 3 < mgmt_oidlen)
+ if (tlv_len - mgmt_alen - sizeof(uint32_t) < 3 ||
+ tlv_len - mgmt_alen - sizeof(uint32_t) - 3 < mgmt_oidlen)
goto out_invalid;
if (mgmt_oidlen > 0) {
tprintf(", OID ");
t-msg'>This reverts commit bff3c624dc7261a084a4d25a0b09c3fb0fec872a. Board "Leon" is otherwise known as "Toshiba CB35" and we already have the entry that supports that board as of this commit : 963cb6f platform/chrome: chromeos_laptop - Add Toshiba CB35 Touch Remove this duplicate. Signed-off-by: Benson Leung <bleung@chromium.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'Documentation/kobject.txt')