HomeFreeBSD

stand: libefi: avoid a null pointer deref in eficom

Description

stand: libefi: avoid a null pointer deref in eficom

We don't keep comc_port around anymore if the console's not present, but
some things might still try to set one of the environment variables we
hook. In particular, one need not even set efi_com_port/efi_com_speed
in loader.conf; loader may do it itself and induce the crash if ConOut
depicts an available uart.

Probably reported by: dch
OK for now: imp

Details

Provenance
kevansAuthored on May 28 2023, 6:50 PM
Parents
rG697727110b68: gssd: Improve failure message when running in a jail
Branches
Unknown
Tags
Unknown