HomeFreeBSD

libefivar: Check Length para before use in DevPathToTextUsbWWID

Description

libefivar: Check Length para before use in DevPathToTextUsbWWID

In function DevPathToTextUsbWWID, the Length parameter is used
without check. This patch is to add check before using it.

Upstream Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=1336
Obtained from: https://github.com/tianocore/edk2/commit/d8e702693a8c292220131dc4234a36e2c9fff614
Pull Request: https://github.com/freebsd/freebsd-src/pull/581

Details

Provenance
jlduranAuthored on Feb 23 2022, 8:16 PM
impCommitted on Feb 27 2022, 4:13 PM
Parents
rGc1fa6f4c5d4b: libefivar: Fix incorrect check for DisplayOnly text format in AcpiEx
Branches
Unknown
Tags
Unknown