mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
zebra: Out-of-bounds read (Coverity 1465495)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
9eafc8abd7
commit
aa360de7a3
@ -3061,7 +3061,7 @@ void zserv_handle_commands(struct zserv *client, struct stream *msg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (hdr.command > array_size(zserv_handlers)
|
||||
if (hdr.command >= array_size(zserv_handlers)
|
||||
|| zserv_handlers[hdr.command] == NULL)
|
||||
zlog_info("Zebra received unknown command %d", hdr.command);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user