HomeFreeBSD

Always return either a dynamically allocated string or NULL from

Description

Always return either a dynamically allocated string or NULL from
expand(). Never return the name parameter, which could be a the buf[]
buffer which is allocated on the stack by getdeadletter() and which
would then be used after getdeadletter() has returned.

Reported by: Coverity
CID: 1199383
MFC after: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS299590: Don't jam the softc in the device_probe routine. The softc isn't owned by
Branches
Unknown
Tags
Unknown