Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 387666 Details for
Bug 527010
>=www-client/firefox{,-bin}-31.0 - segfault when opening this particular webm file - out of memory: 0xFFFFFFFFFFFFFFFF bytes requested
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
webm: ensure 'samples' is not negative
webm-fix.patch (text/plain), 1.12 KB, created by
Ian Stakenvicius (RETIRED)
on 2014-10-28 18:04:20 UTC
(
hide
)
Description:
webm: ensure 'samples' is not negative
Filename:
MIME Type:
Creator:
Ian Stakenvicius (RETIRED)
Created:
2014-10-28 18:04:20 UTC
Size:
1.12 KB
patch
obsolete
>--- a/content/media/webm/WebMReader.cpp 2014-10-20 21:59:39.000000000 -0400 >+++ b/content/media/webm/WebMReader.cpp 2014-10-28 09:06:51.959665416 -0400 >@@ -668,7 +668,15 @@ > return true; > } > int32_t keepFrames = frames - skipFrames; >+ if (keepFrames < 0) { >+ NS_WARNING("Int overflow in samples"); >+ return false; >+ } > int samples = keepFrames * channels; >+ if (samples < 0) { >+ NS_WARNING("Int overflow in samples"); >+ return false; >+ } > nsAutoArrayPtr<AudioDataValue> trimBuffer(new AudioDataValue[samples]); > for (int i = 0; i < samples; i++) > trimBuffer[i] = buffer[skipFrames*channels + i]; >@@ -691,6 +699,10 @@ > int32_t keepFrames = frames - discardFrames.value(); > if (keepFrames > 0) { > int samples = keepFrames * channels; >+ if (samples < 0) { >+ NS_WARNING("Int overflow in samples"); >+ return false; >+ } > nsAutoArrayPtr<AudioDataValue> trimBuffer(new AudioDataValue[samples]); > for (int i = 0; i < samples; i++) > trimBuffer[i] = buffer[i];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 527010
:
387496
| 387666