mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-14 10:24:32 -05:00
082bc48c32
https://review.lineageos.org/q/topic:P_asb_2022-05 https://review.lineageos.org/q/topic:P_asb_2022-06 https://review.lineageos.org/q/topic:P_asb_2022-07 https://review.lineageos.org/q/topic:P_asb_2022-08 https://review.lineageos.org/q/topic:P_asb_2022-09 https://review.lineageos.org/q/topic:P_asb_2022-10 https://review.lineageos.org/q/topic:P_asb_2022-11 https://review.lineageos.org/q/topic:P_asb_2022-12 https://review.lineageos.org/q/topic:P_asb_2023-01 https://review.lineageos.org/q/topic:P_asb_2023-02 https://review.lineageos.org/q/topic:P_asb_2023-03 https://review.lineageos.org/q/topic:P_asb_2023-04 https://review.lineageos.org/q/topic:P_asb_2023-05 https://review.lineageos.org/q/topic:P_asb_2023-06 https://review.lineageos.org/q/topic:P_asb_2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/361250 https://review.lineageos.org/q/topic:P_asb_2023-08 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/364606 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/365328 https://review.lineageos.org/q/topic:P_asb_2023-09 https://review.lineageos.org/q/topic:P_asb_2023-10 https://review.lineageos.org/q/topic:P_asb_2023-11 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/374916 https://review.lineageos.org/q/topic:P_asb_2023-12 https://review.lineageos.org/q/topic:P_asb_2024-01 https://review.lineageos.org/q/topic:P_asb_2024-02 https://review.lineageos.org/q/topic:P_asb_2024-03 https://review.lineageos.org/q/topic:P_asb_2024-04 Signed-off-by: Tavi <tavi@divested.dev>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Alisher Alikhodjaev <alisher@google.com>
|
|
Date: Wed, 3 Aug 2022 12:25:33 -0700
|
|
Subject: [PATCH] OOBW in phNxpNciHal_write_unlocked()
|
|
|
|
Bug: 230356196
|
|
Test: builds ok
|
|
Merged-In: Ief580984ad58dbc7c57c2537c511d6b81c91b581
|
|
Change-Id: I7f22b9ce4a7f101a9218de746b71def74a5efa8c
|
|
(cherry picked from commit a0c461b91a67f6ee0e86f856bcea2bdac2318491)
|
|
Merged-In: I7f22b9ce4a7f101a9218de746b71def74a5efa8c
|
|
---
|
|
halimpl/hal/phNxpNciHal_ext.cc | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/halimpl/hal/phNxpNciHal_ext.cc b/halimpl/hal/phNxpNciHal_ext.cc
|
|
index 895cc43..ed66878 100755
|
|
--- a/halimpl/hal/phNxpNciHal_ext.cc
|
|
+++ b/halimpl/hal/phNxpNciHal_ext.cc
|
|
@@ -744,7 +744,8 @@ NFCSTATUS phNxpNciHal_write_ext(uint16_t* cmd_len, uint8_t* p_cmd_data,
|
|
status = NFCSTATUS_FAILED;
|
|
}
|
|
// 2002 0904 3000 3100 3200 5000
|
|
- else if ((p_cmd_data[0] == 0x20 && p_cmd_data[1] == 0x02) &&
|
|
+ else if (*cmd_len <= (NCI_MAX_DATA_LEN - 1) &&
|
|
+ (p_cmd_data[0] == 0x20 && p_cmd_data[1] == 0x02) &&
|
|
((p_cmd_data[2] == 0x09 && p_cmd_data[3] == 0x04) /*||
|
|
(p_cmd_data[2] == 0x0D && p_cmd_data[3] == 0x04)*/
|
|
)) {
|