• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revisionea3f41f36c161c6f7a847af38757a0fea11685a2 (tree)
Zeit2020-05-06 11:05:54
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Android 9.0.0 release 56
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXrBHVQAKCRDorT+BmrEO
eHOjAJ9/cfWIFJQM9KiqMK5lsWbU4go1HACfVhZkHJloHW5lCdTgaVoZB6s6fkQ=
=quwk
-----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r56' into pie-x86

Android 9.0.0 release 56

Ändern Zusammenfassung

Diff

--- a/service/gatt_server.cc
+++ b/service/gatt_server.cc
@@ -18,6 +18,7 @@
1818
1919 #include <base/logging.h>
2020
21+#include "osi/include/log.h"
2122 #include "service/logging_helpers.h"
2223 #include "stack/include/bt_types.h"
2324
@@ -116,6 +117,12 @@ bool GattServer::SendResponse(const std::string& device_address, int request_id,
116117 return false;
117118 }
118119
120+ if (offset < 0) {
121+ android_errorWriteLog(0x534e4554, "143231677");
122+ LOG(ERROR) << "Offset is less than 0 offset: " << offset;
123+ return false;
124+ }
125+
119126 if (value.size() + offset > BTGATT_MAX_ATTR_LEN) {
120127 LOG(ERROR) << "Value is too large";
121128 return false;
--- a/stack/a2dp/a2dp_aac_decoder.cc
+++ b/stack/a2dp/a2dp_aac_decoder.cc
@@ -30,7 +30,7 @@
3030 typedef struct {
3131 HANDLE_AACDECODER aac_handle;
3232 bool has_aac_handle; // True if aac_handle is valid
33- INT_PCM* decode_buf;
33+ INT_PCM* decode_buf = nullptr;
3434 decoded_data_callback_t decode_callback;
3535 } tA2DP_AAC_DECODER_CB;
3636
@@ -58,7 +58,7 @@ bool a2dp_aac_decoder_init(decoded_data_callback_t decode_callback) {
5858 void a2dp_aac_decoder_cleanup(void) {
5959 if (a2dp_aac_decoder_cb.has_aac_handle)
6060 aacDecoder_Close(a2dp_aac_decoder_cb.aac_handle);
61- free(a2dp_aac_decoder_cb.decode_buf);
61+ osi_free(a2dp_aac_decoder_cb.decode_buf);
6262 memset(&a2dp_aac_decoder_cb, 0, sizeof(a2dp_aac_decoder_cb));
6363 }
6464
--- a/stack/smp/smp_cmac.cc
+++ b/stack/smp/smp_cmac.cc
@@ -278,7 +278,8 @@ static bool cmac_generate_subkey(BT_OCTET16 key) {
278278 ******************************************************************************/
279279 bool aes_cipher_msg_auth_code(BT_OCTET16 key, uint8_t* input, uint16_t length,
280280 uint16_t tlen, uint8_t* p_signature) {
281- uint16_t len, diff;
281+ uint32_t len;
282+ uint16_t diff;
282283 uint16_t n = (length + BT_OCTET16_LEN - 1) /
283284 BT_OCTET16_LEN; /* n is number of rounds */
284285 bool ret = false;