mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1565515 - DecodeBinary violates contract for 0-sized binary r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37849 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
94fda141b7
commit
4546172f59
@ -755,6 +755,7 @@ JSObject* Key::DecodeBinary(const unsigned char*& aPos,
|
||||
}
|
||||
|
||||
if (!size) {
|
||||
++aPos;
|
||||
return JS::NewArrayBuffer(aCx, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user