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
VPLAY-11795 memset on objects is potentially harmful
VPLAY-11795 memset on objects is potentially harmful
Reason for Change: Eliminates undefined behavior from memset on non-POD types and apply RAII principles to POD type initialization.
Non-POD fixes (prevents corruption/crashes):
- CachedFragment: Use Clear() method instead of memset
- SpeedCache: Use assignment operator for reset
- MediaStreamContext: Initialize in member initializer list
- AampLLDashServiceData: Refactor clear() to use assignment (DRY)
- RecordingComponent: Use assignment in reset methods and constructor
- Remove aesCtrAttrDataList memset (already initialized)
POD improvements (RAII compliance):
- Local arrays: Use = {} initialization (work, dataDescTags, tuneStrPrefix,
description, moneytracebuf, buf)
- Member arrays: Add m_SPS, m_PPS to member initializer list
- TileInfo: Remove redundant memset
Code cleanup:
- Remove unused SetLLDashSpeedCache() and refactor test
0 commit comments