!96 修复一些安全测试问题

Merge pull request !96 from demon/master
This commit is contained in:
openharmony_ci
2022-03-16 02:18:35 +00:00
committed by Gitee
3 changed files with 5 additions and 0 deletions
@@ -92,6 +92,7 @@ namespace MiscServices {
IMSA_HILOGI("InputMethodCoreStub::OnRemoteRequest START_INPUT inputDataChannel is nulltpr");
}
startInput(inputDataChannel, *editorAttribute, supportPhysicalKbd);
delete editorAttribute;
reply.WriteNoException();
break;
}
@@ -120,6 +121,7 @@ namespace MiscServices {
case SET_KEYBOARD_TYPE: {
KeyboardType *type = data.ReadParcelable<KeyboardType>();
setKeyboardType(*type);
delete type;
reply.WriteNoException();
break;
}
@@ -158,6 +158,7 @@ using namespace MessageID;
if (textListener != nullptr) {
textListener->SendKeyboardInfo(*info);
}
delete info;
break;
}
case MSG_ID_SEND_FUNCTION_KEY: {
@@ -169,6 +170,7 @@ using namespace MessageID;
if (textListener != nullptr) {
textListener->SendKeyboardInfo(*info);
}
delete info;
break;
}
case MSG_ID_MOVE_CURSOR: {
+1
View File
@@ -1185,6 +1185,7 @@ namespace MiscServices {
}
int ret = AddClient(pid, uid, displayId, client, channel, *attribute);
delete attribute;
if (ret != ErrorCode::NO_ERROR) {
IMSA_HILOGE("PerUserSession::OnPrepareInput Aborted! %{public}s", ErrorCode::ToString(ret));
return;