You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CECDeviceParams class inits "Language m_currentLanguage;" with empty string: "".
Language constructor passes empty string "" and constant "MAX_LEN = 3" to CECBytes constructor that iterates through the empty buffer 3 times. Accessing an array out of bounds gives no error, but causes Undefined Behavior / SIGSEGV.
Problem/Opportunity
CECDeviceParams class inits "Language m_currentLanguage;" with empty string: "".
Language constructor passes empty string "" and constant "MAX_LEN = 3" to CECBytes constructor that iterates through the empty buffer 3 times. Accessing an array out of bounds gives no error, but causes Undefined Behavior / SIGSEGV.
rdkservices/HdmiCecSink/HdmiCecSink.h
Line 144 in 5205a91
Steps to reproduce
Build/run with ASAN.
Expected Behavior
No Undefined Behavior / SIGSEGV.
Actual Behavior
SIGSEGV
Notes (Optional)
No response
The text was updated successfully, but these errors were encountered: