mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
af360bc9ea
wgetc873988898
.patch -O telecomm-01.patch wget0fb5786dbf
.patch -O mediaprovider-01.patch wget1a4b9ef510
.patch -O wifi-01.patch wget364a1d9962
.patch -O bluetooth-01.patch wget87a06448b9
.patch -O settings-01.patch wgetaaba724a68
.patch -O settings-02.patch wget507304e1f5
.patch -O native-01.patch wget89489ff5dd
.patch -O base-01.patch wgetd1765c4715
.patch -O base-02.patch wgetcbb1a0ecd6
.patch -O base-03.patch wget4725772c0b
.patch -O base-04.patch wget19747f6923
.patch -O base-05.patch wgete7a1aa9ed0
.patch -O base-06.patch wget922a7860b1
.patch -O base-07.patch wgeted183ed912
.patch -O base-08.patch wgetc6fbe1330a
.patch -O base-09.patch wget9141cac175
.patch -O base-10.patch wget41235bcc67
.patch -O av-01.patch wgeta89f704701
.patch -O av-02.patch wget6d7cd80d77
.patch -O av-03.patch wget75fc175a08
.patch -O av-04.patch wgetb023ec300f
.patch -O av-05.patch wgetc8117d1539
.patch -O av-06.patch wgetf06d23d824
.patch -O av-07.patch wget9c7408ab07
.patch -O av-08.patch wgetcfbfcefb3c
.patch -O launcher-01.patch wget4a27a7f162
.patch -O libxml-01.patch Signed-off-by: Tad <tad@spotco.us>
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 6d7cd80d77ed35efbe168f627dda021a5d8dd766 Mon Sep 17 00:00:00 2001
|
|
From: Kwangkyu Park <kk48.park@samsung.com>
|
|
Date: Thu, 9 Feb 2023 16:29:10 +0900
|
|
Subject: [PATCH] Fix an issue that a free memory is accessed
|
|
|
|
In error state, request thread join is not executed. And,
|
|
Camera3Device's mId can be accessed from String& after being freed with
|
|
CLOGE().
|
|
|
|
This fix will address by changing reference type to normal variable.
|
|
|
|
Bug: 268437033
|
|
Change-Id: Iad3fcd0fbbaf1e18a2b95093aba08015a933374c
|
|
---
|
|
services/camera/libcameraservice/device3/Camera3Device.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/services/camera/libcameraservice/device3/Camera3Device.h b/services/camera/libcameraservice/device3/Camera3Device.h
|
|
index e6073a94d4..5187a96f59 100644
|
|
--- a/services/camera/libcameraservice/device3/Camera3Device.h
|
|
+++ b/services/camera/libcameraservice/device3/Camera3Device.h
|
|
@@ -1010,7 +1010,7 @@ class Camera3Device :
|
|
|
|
wp<NotificationListener> mListener;
|
|
|
|
- const String8& mId; // The camera ID
|
|
+ const String8 mId; // The camera ID
|
|
int mStatusId; // The RequestThread's component ID for
|
|
// status tracking
|
|
|