Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
707 stars 284 forks source link

ActivateSource: Fix nullptr dereference #556

Open ijm7 opened 3 years ago

ijm7 commented 3 years ago

the initial nullptr check for device does not cover the condition where bTvPresent is found to be true and device is dereferenced again. I've moved the bTvPresent into the device nullptr check to cover this case.