diff --git a/frameworks/innerkitsimpl/src/printer_capability.cpp b/frameworks/innerkitsimpl/src/printer_capability.cpp index e1b37ebe1d2a8d9a9058f2233584460b09fadde0..d18b3df1ce27c4b6120dfed52b74a16f49b23138 100644 --- a/frameworks/innerkitsimpl/src/printer_capability.cpp +++ b/frameworks/innerkitsimpl/src/printer_capability.cpp @@ -148,6 +148,7 @@ bool PrinterCapability::ReadFromParcel(Parcel &parcel) if (hasResolution_) { std::vector 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) { diff --git a/profile/3707.json b/profile/3707.json index 520d1ee2fd2256daa1621494d0f0976a3f6c8bfc..657ef798c2f3cabcad2251f367295dd47d531ef3 100644 --- a/profile/3707.json +++ b/profile/3707.json @@ -5,6 +5,7 @@ "name": 3707, "libpath": "libprint_service.z.so", "run-on-create": false, + "auto-restart": true, "distributed": false, "dump_level": 1 }