MCPcopy Create free account
hub / github.com/ChendoChap/PS5-Webkit-Execution / spawn_thread

Method spawn_thread

rop.js:314–321  ·  view source on GitHub ↗

* returns created pthread_t as int64

()

Source from the content-addressed store, hash-verified

312 * returns created pthread_t as int64
313 */
314 async spawn_thread() {
315
316 //add pthread_exit((void*)0x44414544); -> "DEAD"
317 this.fcall(libKernelBase.add32(OFFSET_lk_pthread_exit), 0x44414544);
318
319 await chain.call(libKernelBase.add32(OFFSET_lk_pthread_create_name_np), this.stack_memory.add32(0x48), 0x0, libSceLibcInternalBase.add32(OFFSET_lc_longjmp), this.stack_memory, this.stack_memory.add32(0x50));
320 return p.read8(this.stack_memory.add32(0x48));
321 }
322}

Callers 1

userlandFunction · 0.95

Calls 2

fcallMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected