Chrome: V8: Integer overflow with...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

Here's a snippet of the MigrateFastToFast function which is used to create a new PropertyArray object. ``` int number_of_fields = new_map->NumberOfFields(); int inobject = new_map->GetInObjectProperties(); int unused = new_map->UnusedPropertyFields(); ... int total_size = number_of_fields + unused; int external = total_size - inobject; Handle<PropertyArray> array = isolate->factory()->NewPropertyArray(external); ``` The new_map variable may come from the Map::CopyWithField method. Here's a snippet of the method. ``` MaybeHandle<Map> Map::CopyWithField(Handle<Map> map, Handle<Name> name, Handle<FieldType> type, PropertyAttributes attributes, PropertyConstness constness, Representation representation, TransitionFlag flag) { ... if (map->NumberOfOwnDescriptors() >= kMaxNumberOfDescriptors) { return MaybeHandle<Map>(); } DCHECK_IMPLIES(!FLAG_track_constant_fields, constness == kMutable); Descriptor d = Descriptor::DataField(name, index, attributes, constness, representation,...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息