mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
NetworkPkg/Ip6Dxe: Add NULL check for InterfaceId before dereference
In Ip6ProcessRouterAdvertise, IpSb->InterfaceId is dereferenced in CopyMem to form a stateless address. Add a guard to ensure IpSb->InterfaceId is not NULL before entering the block, preventing a potential NULL pointer dereference. Signed-off-by: Abuthahir M <abuthahirm@ami.com>
This commit is contained in:
parent
d21677e0bc
commit
a589f6fe03
1 changed files with 1 additions and 0 deletions
|
|
@ -2277,6 +2277,7 @@ Ip6ProcessRouterAdvertise (
|
|||
//
|
||||
if ((PrefixList == NULL) &&
|
||||
(PrefixOption.ValidLifetime != 0) &&
|
||||
(IpSb->InterfaceId != NULL) &&
|
||||
(PrefixOption.PrefixLength + IpSb->InterfaceIdLen * 8 == 128)
|
||||
)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue