mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
[js] Disallow deserializing structured clone buffers with transferables more than once.
This commit is contained in:
parent
32498a0694
commit
9a6e3bc30d
3 changed files with 29 additions and 9 deletions
|
|
@ -472,6 +472,7 @@ class JS_PUBLIC_API(JSAutoStructuredCloneBuffer) {
|
|||
#define JS_SCERR_TRANSFERABLE 1
|
||||
#define JS_SCERR_DUP_TRANSFERABLE 2
|
||||
#define JS_SCERR_UNSUPPORTED_TYPE 3
|
||||
#define JS_SCERR_TRANSFERABLE_TWICE 4
|
||||
|
||||
JS_PUBLIC_API(bool)
|
||||
JS_ReadUint32Pair(JSStructuredCloneReader* r, uint32_t* p1, uint32_t* p2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue