mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 22:59:45 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
a5bf58e5da
commit
403ad5d241
@ -138,7 +138,7 @@ namespace MiscServices {
|
||||
|
||||
size_t readAbleSize = parcel.GetReadableBytes() / sizeof(KeyboardType);
|
||||
size_t len = static_cast<size_t>(size);
|
||||
if((len > readAbleSize) || (len > mTypes.max_size())) {
|
||||
if(len > readAbleSize) {
|
||||
return info;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ namespace MiscServices {
|
||||
|
||||
size_t readAbleSize = parcel.GetReadableBytes() / (sizeof(std::u16string) * 2);
|
||||
size_t len = static_cast<size_t>(size);
|
||||
if((len > readAbleSize) || (len > mTypes.max_size())) {
|
||||
if(len > readAbleSize) {
|
||||
return ims;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user