mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -37,6 +37,7 @@ struct ChangeInfo {
|
||||
mutable std::list<Uri> uris_ = {};
|
||||
const void *data_ = nullptr;
|
||||
uint32_t size_ = 0;
|
||||
static constexpr int LIST_MAX_COUNT = 3000;
|
||||
};
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
|
||||
@@ -53,6 +53,9 @@ bool ChangeInfo::Unmarshalling(ChangeInfo &output, MessageParcel &parcel)
|
||||
if (!parcel.ReadUint32(len)) {
|
||||
return false;
|
||||
}
|
||||
if (len > LIST_MAX_COUNT) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::list<Uri> uris;
|
||||
for (uint32_t i = 0; i < len; i++) {
|
||||
|
||||
Reference in New Issue
Block a user