Apple WebKit: UXSS via...

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

When creating an object in Javascript, its |Structure| is created with the constructor's prototype's |VM|. Here's some snippets of that routine. ``` Structure* InternalFunction::createSubclassStructure(ExecState* exec, JSValue newTarget, Structure* baseClass) { ... if (newTarget && newTarget != exec->jsCallee()) { // newTarget may be an InternalFunction if we were called from Reflect.construct. JSFunction* targetFunction = jsDynamicCast<JSFunction*>(newTarget); if (LIKELY(targetFunction)) { ... return targetFunction->rareData(vm)->createInternalFunctionAllocationStructureFromBase(vm, prototype, baseClass); ... } else { ... return vm.prototypeMap.emptyStructureForPrototypeFromBaseStructure(prototype, baseClass); ... } } return baseClass; } inline Structure* PrototypeMap::createEmptyStructure(JSObject* prototype, const TypeInfo& typeInfo, const ClassInfo* classInfo, IndexingType indexingType, unsigned inlineCapacity) { ... Structure* structure = Structure::create(...

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