[js] Disallow deserializing structured clone buffers with transferables more than once.

This commit is contained in:
Steve Fink 2024-10-01 22:22:04 +02:00 committed by roytam1
commit 9a6e3bc30d
3 changed files with 29 additions and 9 deletions

View file

@ -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);