Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2022-09-29 11:25:26 +08:00
parent a5bf58e5da
commit 403ad5d241
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}