-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android]add json support for invoke and write #28759
[Android]add json support for invoke and write #28759
Conversation
PR #28759: Size comparison from a167c71 to 642f8c3 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
642f8c3
to
84e0c61
Compare
84e0c61
to
90b06a2
Compare
PR #28759: Size comparison from a167c71 to 90b06a2 Increases (4 builds for cc32xx, psoc6)
Decreases (3 builds for bl702, efr32, esp32)
Full report (31 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg)
|
90b06a2
to
08973ac
Compare
PR #28759: Size comparison from f4ec7c5 to 08973ac Increases (8 builds for bl702, cyw30739, esp32, nrfconnect, psoc6, telink)
Decreases (15 builds for bl702, cc32xx, efr32, k32w, psoc6, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
VerifyOrExit(tlvBytesObj != nullptr, err = CHIP_ERROR_INVALID_ARGUMENT); | ||
if (tlvBytesObj != nullptr) | ||
{ | ||
jbyte * tlvBytesObjBytes = env->GetByteArrayElements(tlvBytesObj, nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This misses ReleaseByteArrayElements
if (jsonJniString != nullptr) | ||
{ | ||
JniUtfString jsonUtfJniString(env, jsonJniString); | ||
uint8_t buf[chip::app::kMaxSecureSduLengthBytes] = { 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This buffer is valid within the scope of {}
. tlvBytes makes it escape that, so you would be using invalid data.
-- [Android]add json support for invoke and write using latest json/tlv conversion
-- Add corresponding invoke and write test.