DescriptionFix memory leak on serializing neutered ArrayBuffer.
If the serialization of an ArrayBufferView's ArrayBuffer fails, unwind
the state stack completely before reporting an error to avoid leaking
a serializer state object.
To accommodate, split out the state stack overflow checking from the
dispatching on value types which was both performed by the main
serialization method. Now handled by
Serializer::doSerialize()
Serializer::doSerializeImpl()
respectively, with the former calling upon the latter if the stack
check passes.
R=dslomov@chromium.org
BUG=291240
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161343
Patch Set 1 #
Total comments: 4
Patch Set 2 : Restructure serialization method for simpler unwinding #
Total comments: 1
Patch Set 3 : Restore/improve comment #Messages
Total messages: 10 (0 generated)
|