mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
amrparse: properly check for sufficient available data prior to access
This commit is contained in:
parent
fd064765a7
commit
39da316386
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ gst_amrparse_check_valid_frame (GstBaseParse * parse,
|
||||||
* perform this check)
|
* perform this check)
|
||||||
*/
|
*/
|
||||||
if (GST_BASE_PARSE_FRAME_SYNC (frame) || GST_BASE_PARSE_FRAME_DRAIN (frame)
|
if (GST_BASE_PARSE_FRAME_SYNC (frame) || GST_BASE_PARSE_FRAME_DRAIN (frame)
|
||||||
|| (dsize >= fsize && (data[fsize] & 0x83) == 0)) {
|
|| (dsize > fsize && (data[fsize] & 0x83) == 0)) {
|
||||||
*framesize = fsize;
|
*framesize = fsize;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue