1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-24 20:31:37 +00:00
mpv/libmpdemux
reimar 5c53ce6bae demux_ts: fix crash on broken packets
Check packet size before memmove to avoid crashes e.g. if we recognized the
wrong type and subtracted more header bytes than there are overall bytes.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31669 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:43 +02:00
..
aac_hdr.c Add separate header for aac_parse_frame(); avoids forward declarations. 2010-02-17 22:28:24 +00:00
aac_hdr.h Add separate header for aac_parse_frame(); avoids forward declarations. 2010-02-17 22:28:24 +00:00
asf.h Calculate length of ASF files with more than 1 second precision. 2009-11-10 16:24:16 +00:00
asfguid.h asfguid.h: Use AV_RL32 also in x86 2010-11-02 04:14:20 +02:00
asfheader.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
asfheader.h Add header for asf_check_header, read_asf_header; avoids forward declarations. 2010-02-17 23:45:01 +00:00
aviheader.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
aviheader.h Add read_avi_header() to aviheader.h; avoids forward declarations. 2010-02-17 23:10:56 +00:00
aviprint.c Merge svn changes up to r30643 2010-03-10 00:00:06 +02:00
aviprint.h Declare public function print_vprp() in aviprint.h. 2010-02-21 23:36:36 +00:00
demux_aac.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_asf.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_audio.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_avi.c Merge svn changes up to r31004 2010-04-26 17:55:05 +03:00
demux_avs.c cleanup: #include loader/wine/winbase.h instead of local declarations 2010-11-02 04:07:44 +02:00
demux_avs.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
demux_demuxers.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_film.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_fli.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_gif.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_lavf.c subs: Add support for PGS subtitle decoding via libavcodec 2010-11-02 04:14:43 +02:00
demux_lmlm4.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_mf.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_mkv.c demux_mkv: support V_MJPEG video tag 2010-10-27 01:46:05 +03:00
demux_mng.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_mov.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_mov.h Add header file for store_ughvlc(); avoids forward declarations. 2010-02-17 23:02:13 +00:00
demux_mpc.c Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
demux_mpg.c options: move -alang and -slang to option struct 2010-05-22 10:11:15 +03:00
demux_nemesi.c rtsp: Support RTSP/RTP over HTTP via LIVE555 2010-11-02 04:07:16 +02:00
demux_nsv.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_nut.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_ogg.c options: move -alang and -slang to option struct 2010-05-22 10:11:15 +03:00
demux_ogg.h Add header for demux_ogg_open, init_avi_with_ogg; avoids forward declarations. 2010-02-17 23:36:44 +00:00
demux_pva.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_rawaudio.c -demuxer rawaudio data will often need parsing (e.g. when it is used for raw 2010-01-15 19:01:03 +00:00
demux_rawdv.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_rawvideo.c Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
demux_real.c demux_real: use MKTAG definition from libavutil 2010-11-02 04:11:42 +02:00
demux_real.h Add separate header for real_fix_timestamp(); avoids forward declarations. 2010-02-17 22:22:51 +00:00
demux_realaud.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_roq.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_rtp_codec.cpp Silence permanent warning messages when decoding H264 over rtsp with 2010-05-02 10:47:40 +00:00
demux_rtp_internal.h Remove pointless #ifdef checks for DEMUXER_H, which is never set. 2010-02-27 12:48:11 +00:00
demux_rtp.cpp rtsp: Support RTSP/RTP over HTTP via LIVE555 2010-11-02 04:07:16 +02:00
demux_rtp.h Remove pointless #ifdef checks for DEMUXER_H, which is never set. 2010-02-27 12:48:11 +00:00
demux_smjpeg.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_ts.c demux_ts: fix crash on broken packets 2010-11-02 04:14:43 +02:00
demux_ts.h Move TS_MAX_PROBE_SIZE #define to demux_ts.h instead of duplicating it. 2010-05-30 22:14:13 +00:00
demux_ty_osd.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_ty_osd.h Add header for ty_ClearOSD(), ty_processuserdata(); avoids forward declarations. 2010-02-17 22:48:32 +00:00
demux_ty.c demux_ty: Cleanup some code, possibly fix vstream support (untested) 2010-11-02 04:10:10 +02:00
demux_viv.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_vqf.c Replace libavutil internal header #includes with MPlayer copies 2009-07-26 06:16:43 +03:00
demux_xmms_plugin.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
demux_xmms.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
demux_y4m.c demux_y4m: increase error message verbosity from MSGL_V to MSGL_ERR 2010-11-02 04:11:07 +02:00
demuxer.c demuxer.c: Make ds_get_next_pts work for the first packet of a stream 2010-10-27 20:30:30 +03:00
demuxer.h demux: use bstr arguments for demuxer_add_attachment() and demuxer_add_chapter() 2010-05-22 06:40:28 +03:00
ebml_defs.c demux_mkv: read tags. 2010-05-22 06:40:34 +03:00
ebml_types.h demux_mkv: read tags. 2010-05-22 06:40:34 +03:00
ebml.c cosmetics: Reformat in K&R coding style. 2010-05-27 16:46:47 +00:00
ebml.h bstr.[ch]: add new files for struct bstr related functionality 2010-05-20 23:50:18 +03:00
extension.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
genres.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
matroska.h demux_mkv: support V_MJPEG video tag 2010-10-27 01:46:05 +03:00
mf.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
mf.h Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
mp3_hdr.c Merge svn changes up to r30798 2010-03-10 02:35:02 +02:00
mp3_hdr.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
mp_taglists.c Merge svn changes up to r30876 2010-03-10 03:18:42 +02:00
mp_taglists.h Fix declarations in mp_taglists.h and include it in mp_taglists.c to 2009-11-11 11:52:36 +00:00
mpeg_hdr.c Calculate width and height in mp4_header_process_vop(). 2010-03-15 22:32:11 +00:00
mpeg_hdr.h Parse and use the information from the frame rate extension header for MPEG-2. 2010-02-21 13:53:41 +00:00
mpeg_packetizer.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
mpeg_packetizer.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
ms_hdr.h Get the proper codec id when a WAVE_FORMAT_EXTENSIBLE extension exists in a 2010-02-22 14:27:32 +00:00
muxer_avi.c Factorize MPlayer/MEncoder version string handling. 2010-11-02 04:11:43 +02:00
muxer_lavf.c Merge svn changes up to r31004 2010-04-26 17:55:05 +03:00
muxer_mpeg.c Merge svn changes up to r31169 2010-05-30 15:27:58 +03:00
muxer_rawaudio.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
muxer_rawvideo.c Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
muxer.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
muxer.h Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
parse_es.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
parse_es.h Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
parse_mp4.c Merge svn changes up to r30643 2010-03-10 00:00:06 +02:00
parse_mp4.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
qtpalette.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stheader.h cleanup: Add const qualifiers for struct ad_functions pointers 2010-11-02 04:13:02 +02:00
video.c Merge svn changes up to r30967 2010-04-26 17:42:20 +03:00
yuv4mpeg_intern.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
yuv4mpeg_ratio.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
yuv4mpeg.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
yuv4mpeg.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00