On Wed, 24 Aug 2022 at 04:31, Yuan Yu <yua...@google.com> wrote: > > Per UEFI Spec 2.9, EFI_HII_CONFIG_ROUTING_PROTOCOL.RouteConfig() > should return EFI_INVALID_PARAMETERS if caller passes in a NULL for > the Configuration parameter (see 35.4 EFI HII Configuration Routing > Protocol). > > Add a check to return EFI_INVALID_PARAMETERS when Configuration is NULL. > > Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> > Cc: Jordan Justen <jordan.l.jus...@intel.com> > Cc: Laszlo Ersek <ler...@redhat.com> > Cc: Anthony Perard <anthony.per...@citrix.com> > Cc: Julien Grall <jul...@xen.org> > > Signed-off-by: Yuan Yu <yua...@google.com> > --- > OvmfPkg/PlatformDxe/Platform.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c > index a6d459f3dfd7..83dcd2216c6d 100644 > --- a/OvmfPkg/PlatformDxe/Platform.c > +++ b/OvmfPkg/PlatformDxe/Platform.c > @@ -344,7 +344,7 @@ RouteConfig ( > Configuration > )); > > - if (Progress == NULL) { > + if (Progress == NULL || Configuration == NULL) { > return EFI_INVALID_PARAMETER; > } > > -- > 2.37.2.672.g94769d06f0-goog >
Merged as #3287 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93157): https://edk2.groups.io/g/devel/message/93157 Mute This Topic: https://groups.io/mt/93219657/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-