Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0491842 authored by Stephen Hines's avatar Stephen Hines
Browse files

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
parent aeb11b59
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {