
Currently there is no validation of the buffer length passed by the caller in the function to validate the TLV's coming for an event/ command. This may cause possible null pointer reference. In this change validate the buffer length passed by the caller. Change-Id: Ia365cf78acce3a235b9e15e6ed95a1aaa06b4c6f CRs-Fixed: 2105739