[wpt-sync] Sync PR 30291 - ImageCapture: Fix a cluster fuzz crash when takePhoto() is called
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(Not tracked)
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 30291 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/30291
Details from upstream follow.
b'Jinho Bang <zino@chromium.org>' wrote:
ImageCapture: Fix a cluster fuzz crash when takePhoto() is called
According to the spec[1], the
imageHeightandimageWidthis nullable
because they have no default value. The dictionary member might be null
if not explicitly specified.
So this patch adds logics to check if dictionary member has a value.[1] https://w3c.github.io/mediacapture-image/#dictdef-photocapabilities
Bug: 1229991, 1242223, 1244252
Change-Id: I6c3d425a62949bef5081afe9207c0dba829976a4
Reviewed-on: https://chromium-review.googlesource.com/3137834
WPT-Export-Revision: 3dd0ec51593faa2f1ad8914795d384d5acd4cdc6
| Assignee | ||
Updated•4 years ago
|
Description
•