Fix potential segfault in RS watchdog.
BUG=5544671 This initializes the watchdog structure properly. Without this fix, it is possible to call LOGE with a garbage string value. Change-Id: Ie05eb65f83eca938f18ac962794407d58c3f277f
This commit is contained in:
@@ -359,6 +359,7 @@ Context::Context() {
|
||||
mTargetSdkVersion = 14;
|
||||
mDPI = 96;
|
||||
mIsContextLite = false;
|
||||
memset(&watchdog, 0, sizeof(watchdog));
|
||||
}
|
||||
|
||||
Context * Context::createContext(Device *dev, const RsSurfaceConfig *sc) {
|
||||
|
||||
Reference in New Issue
Block a user