mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-28 00:49:37 -05:00
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Alisher Alikhodjaev <alisher@google.com>
|
||
|
Date: Wed, 26 Oct 2022 14:03:48 -0700
|
||
|
Subject: [PATCH] DO NOT MERGE OOBW in Mfc_Transceive()
|
||
|
|
||
|
Bug: 241387741
|
||
|
Test: build ok
|
||
|
Change-Id: Idf45b940ac21eeb4cf09c222988bfce22b0bef55
|
||
|
(cherry picked from commit f5f24d0ea2bcc33f18915c4c7369f803c45e53b0)
|
||
|
Merged-In: Idf45b940ac21eeb4cf09c222988bfce22b0bef55
|
||
|
---
|
||
|
nci/jni/extns/pn54x/src/mifare/phNxpExtns_MifareStd.c | 6 ++++++
|
||
|
1 file changed, 6 insertions(+)
|
||
|
|
||
|
diff --git a/nci/jni/extns/pn54x/src/mifare/phNxpExtns_MifareStd.c b/nci/jni/extns/pn54x/src/mifare/phNxpExtns_MifareStd.c
|
||
|
index 0ee2314d..6c24bf83 100755
|
||
|
--- a/nci/jni/extns/pn54x/src/mifare/phNxpExtns_MifareStd.c
|
||
|
+++ b/nci/jni/extns/pn54x/src/mifare/phNxpExtns_MifareStd.c
|
||
|
@@ -1074,6 +1074,12 @@ NFCSTATUS Mfc_Transceive(uint8_t *p_data, uint32_t len)
|
||
|
return status;
|
||
|
}
|
||
|
|
||
|
+ if (len > (MAX_BUFF_SIZE * 2))
|
||
|
+ {
|
||
|
+ android_errorWriteLog(0x534e4554, "241387741");
|
||
|
+ return status;
|
||
|
+ }
|
||
|
+
|
||
|
gphNxpExtns_Context.RawWriteCallBack = FALSE;
|
||
|
gphNxpExtns_Context.CallBackMifare = NULL;
|
||
|
gphNxpExtns_Context.CallBackCtxt = NdefMap;
|