diff options
author | Dan Glastonbury <dan.glastonbury@gmail.com> | 2018-02-20 16:16:10 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-14 11:02:02 +0100 |
commit | 7cdae0bc63797f40c57795062caf4ceaf0b7771f (patch) | |
tree | 67c7930d51eca9c60114f2ad0f1f47e9864b0591 /dom/media/MediaData.cpp | |
parent | d9a4dce362a5df2d08c8da566e412ea7464b784d (diff) | |
download | uxp-7cdae0bc63797f40c57795062caf4ceaf0b7771f.tar.gz |
Bug 1428947 - Check plane width & stride constraints. r=mattwoodrow, a=ritu
MozReview-Commit-ID: 328ETwMdVnq
--HG--
extra : rebase_source : e16b28d137de080f9d8495c6937e24ac16b16ab1
Diffstat (limited to 'dom/media/MediaData.cpp')
-rw-r--r-- | dom/media/MediaData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/media/MediaData.cpp b/dom/media/MediaData.cpp index 0439a7473b..4a52c22ae6 100644 --- a/dom/media/MediaData.cpp +++ b/dom/media/MediaData.cpp @@ -90,7 +90,7 @@ ValidatePlane(const VideoData::YCbCrBuffer::Plane& aPlane) return aPlane.mWidth <= PlanarYCbCrImage::MAX_DIMENSION && aPlane.mHeight <= PlanarYCbCrImage::MAX_DIMENSION && aPlane.mWidth * aPlane.mHeight < MAX_VIDEO_WIDTH * MAX_VIDEO_HEIGHT && - aPlane.mStride > 0; + aPlane.mStride > 0 && aPlane.mWidth <= aPlane.mStride; } #ifdef MOZ_WIDGET_GONK |