!69 添加校验循环边界

Merge pull request !69 from xiongqiao3/master
This commit is contained in:
openharmony_ci 2023-06-15 07:58:00 +00:00 committed by Gitee
commit d7c0e99786
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,7 @@ bool PrinterCapability::ReadFromParcel(Parcel &parcel)
if (hasResolution_) {
std::vector<PrintResolution> resolutionList;
vecSize = parcel.ReadUint32();
CHECK_IS_EXCEED_PRINT_RANGE_BOOL(vecSize);
for (uint32_t index = 0; index < vecSize; index++) {
auto resolutionPtr = PrintResolution::Unmarshalling(parcel);
if (resolutionPtr == nullptr) {

View File

@ -5,6 +5,7 @@
"name": 3707,
"libpath": "libprint_service.z.so",
"run-on-create": false,
"auto-restart": true,
"distributed": false,
"dump_level": 1
}