Michael Niedermayer
083c48e6d9
avcodec/jpeg2000dec: Skip init for component in CPRL if nothing is to be done
...
Fixes: assertion failure
Fixes: 7949/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-4819602782552064
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a96c131eb5
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
6315215e5c
avcodec/g2meet: Change order of operations to avoid undefined behavior
...
Fixes: signed integer overflow: 65280 * 196032 cannot be represented in type 'int'
Fixes: 7279/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5977332473921536
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0a47451458
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
90e9b76d3a
avcodec/flac_parser: Fix infinite loop
...
Fixes: crbug/827204
Reported-by: Frank Liberato <liberato@google.com >
Reviewed-by: Frank Liberato <liberato@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 15a2e35e9e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
bb7b9238b4
avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()
...
Fixes: runtime error: signed integer overflow: 2147483637 + 128 cannot be represented in type 'int'
Fixes: 6701/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5358324934508544
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6e95d80e6f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
986747c9e2
avcodec/error_resilience: Fix integer overflow in filter181()
...
Fixes: runtime error: signed integer overflow: 197710 * 10923 cannot be represented in type 'int'
Fixes: 7010/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5667127596941312
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1c97035e3b
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
69f861be42
avcodec/h263dec: Check slice_ret in mspeg4 slice loop
...
Fixes infinite loop
Fixes: 6858/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_MSMPEG4V3_fuzzer-4681563766784000
Fixes: 6890/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_WMV1_fuzzer-4756103142309888
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit de841fbea7
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
3d29170013
avcodec/elsdec: Fix memleaks
...
Fixes: 6798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5135899701542912
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0bd0401336
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
77121f6bff
avcodec/vc1_block: simplify ac_val computation
...
also fixes: runtime error: index 1456 out of bounds for type 'int16_t [16]'
Found-by: durandal_1707
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d06b01fc2d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
bcc47312d4
avcodec/ffv1enc: Check that the crc + version combination is supported
...
The crc flag is only stored since version 3 thus before this crcs do not
work. We increase the version as needed same as we do with pix_fmts
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d9706f79c1
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Stephan Holljes
2d975fff05
lavf/http.c: Free allocated client URLContext in case of error.
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7b6b8c9265
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
7784a7c1d8
avcodec/dsicinvideo: Fail if there is only a small fraction of the data available that comprises a full frame
...
Fixes: Timeout
Fixes: 6306/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DSICINVIDEO_fuzzer-5079253549842432
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5549488bbf
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
bd6a181d5a
avcodec/dsicinvideo: Propagate errors from cin_decode_rle()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 942217b153
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
45f03502c9
avcodec/dfa: Check dimension against maximum
...
The headers from where the dimensions are read in actual files
are limited to 16bit per component.
Fixes: Timeout
Fixes: 6305/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DFA_fuzzer-4824270749302784
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9d5a4fcfbb
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
5d42300731
avcodec/cinepak: Skip empty frames
...
Speeds up decoding from 3 to 0.1 seconds for 6302/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5626371985375232
Fixes: Timeout
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9033920bec
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
4b0181dc00
avcodec/cinepak: move some checks prior to frame allocation
...
Speeds up decoding from 8 to 3 seconds for 6302/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5626371985375232
Fixes: Timeout
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2324ef1ff3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Rahul Chaudhry
f322de901d
swresample/arm: remove unintentional relocation.
...
Branch to global symbol results in reference to PLT, and when compiling
for THUMB-2 - in a R_ARM_THM_JUMP19 relocation. Some linkers don't
support this relocation (ld.gold), while others can end up truncating
the relocation to fit (ld.bfd).
Convert this branch through PLT into a direct branch that the assembler
can resolve locally.
See https://github.com/android-ndk/ndk/issues/337 for background.
The current workaround is to disable neon during gstreamer build,
which is not optimal and can be reverted after this patch:
41556c4157
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b22db4f465
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
Michael Niedermayer
f4e2ac296d
doc/APIchanges: Fix typos in hashes
...
Thanks-to: Moritz Barsnick <barsnick@gmx.net > for finding the correct ones
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ec8a5262b0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-07-16 19:06:26 +02:00
James Almer
003be3e49e
avdevice/iec61883: free the private context at the end
...
Fixes part of ticket #7146 .
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 5079e96bcc
)
2018-04-18 23:02:59 -03:00
James Almer
bc07879bc5
avdevice/iec61883: return reference counted packets
...
Fixes part of ticket #7146 , dealing with leaks of packet data since
commit 87c8812270
.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit b8629654c6
)
2018-04-18 23:02:55 -03:00
Michael Niedermayer
93e2cb4511
Changelog: update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n3.3.7
2018-04-13 23:11:26 +02:00
Michael Niedermayer
d4b5ffeb57
avformat/utils: Check cur_dts in update_initial_timestamps() more
...
Fixes: runtime error: signed integer overflow: 18133149658382192 - -9223090561878065151 cannot be represented in type 'long long'
Fixes: crbug 831552
Reported-by: Matt Wolenetz <wolenetz@google.com >
Reviewed-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 37d46dc21d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 23:10:00 +02:00
Michael Niedermayer
b8ef20becf
avcodec/utils: Enforce minimum width also for VP5/6
...
Fixes: out of array access
Fixes: poc_0411
Found-by: GwanYeong Kim <gy741.kim@gmail.com >
Tested-by: GwanYeong Kim <gy741.kim@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 544324827e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 23:09:12 +02:00
Michael Niedermayer
d7bda29820
avcodec/truemotion2: Propagate out of bounds error from GET_TOK()
...
Fixes: Timeout
Fixes: 6389/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5695918121680896
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f6304af234
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 23:00:30 +02:00
Michael Niedermayer
01645d5915
avformat/utils: Fix integer overflow in end time calculation in update_stream_timings()
...
Fixes: crbug 829153
Reported-by: Matt Wolenetz <wolenetz@google.com >
Reviewed-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c48ceff786
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 22:59:22 +02:00
Michael Niedermayer
7af6fba145
Update for 3.3.7
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 01:54:06 +02:00
James Almer
3e3704da0c
avformat/utils: fix mixed declarations and code
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 31de45d20b
)
2018-04-13 01:20:14 +02:00
Michael Niedermayer
6de499caed
avcodec/mjpegdec: Check input buffer size.
...
Fixes: Timeout
Fixes: 6381/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5665032743419904
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8d381b57fd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
41458534aa
avcodec/h264_slice: Fix integer overflow with last_poc
...
Fixes: signed integer overflow: 2147483646 - -2816 cannot be represented in type 'int'
Fixes: crbug 823145
Reported-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8c02cd8ca0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
9b56e65e8c
avformat/mov: Fix extradata memleak
...
Fixes: crbug 822705
Reported-by: Matt Wolenetz <wolenetz@google.com >
Reviewed-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0a8133119c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Matt Wolenetz
9b1a4da668
lavc/libopusdec: Allow avcodec_open2 to call .close
...
If there is a decoder initialization failure detected in avcodec_open2
after .init is called, allow graceful decoder .close to prevent leaking
libopus decoder allocations.
BUG=828526
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e43e97f0e0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
c9452899db
avcodec/movtextdec: Check style_start/end
...
Limits based on 3GPP TS 26.245 V14.0.0
Fixes: Timeout
Fixes: 6377/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOVTEXT_fuzzer-5175929115508736
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Philip Langdale <philipl@overt.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 249aca8f98
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
0e5946d5b2
avcodec/aacsbr_fixed: Fix integer overflow in sbr_hf_assemble()
...
Fixes: runtime error: signed integer overflow: 2052929346 + 204817098 cannot be represented in type 'int'
This was missed in b1bef755f6
Fixes: 5275/clusterfuzz-testcase-minimized-5367635958038528
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c837918f50
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
23f13130f1
libavcodec/rv34: error out earlier on missing references
...
Fixes visual corruption on seeking
Fixes: downloadTest_clip_24M.rmvb
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6cd81d68c5
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Hendrik Schreiber
30c26bb78f
swresample/swresample: Fix for seg fault in swr_convert_internal() -> sum2_float during dithering.
...
Removed +len1 in call to s->mix_2_1_f() as I found no logical explanation for it. After removal, problem was gone.
Signed-off-by: Hendrik Schreiber <hs@tagtraum.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 647fd4b829
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
ae2c159b87
avcodec/aacdec_fixed: Fix integer overflow in apply_independent_coupling_fixed()
...
I was not able to reproduce this, this fix is based on just the fuzzer log.
Fixes: 4959/clusterfuzz-testcase-minimized-6035350934781952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 197a4e8fee
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
1d3c141af4
avcodec/cscd: Error out when LZ* decompression fails
...
Fixes: Timeout
Fixes: 6304/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CSCD_fuzzer-5754772461191168
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d52be5d4e9
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
heimdallr
3f949b7a64
avcodec/imgconvert: Fix loss mask bug in avcodec_find_best_pix_fmt_of_list()
...
example:
AVPixelFormat pixFmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA };
int loss = 0;
AVPixelFormat best = avcodec_find_best_pix_fmt_of_list(pixFmts, AV_PIX_FMT_BGRA, 1, &loss);
best is AV_PIX_FMT_RGB24. But AV_PIX_FMT_RGBA is better.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 354b26a394
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
49336482fd
avfilter/vf_signature: use av_strlcpy()
...
Fixes: out of array access
Found-by: Kira <kira_cxy@foxmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 35eeff30ca
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
15d4dc0da1
avcodec/utvideodec: Set pro flag based on fourcc
...
This avoids mixing 8bit variants with pro and 10bit with non pro mode.
Fixes: out of array read
Fixes: poc_03_30.avi
Found-by: GwanYeong Kim <gy741.kim@gmail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 47b7c68ae5
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
d79b274acc
avcodec/wmalosslessdec: Fix null pointer dereference in decode_frame()
...
Fixes: 2018_03_23_poc.wav
Found-by: GwanYeong Kim <gy741.kim@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ea15915b2d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
769cb89738
avcodec/tableprint_vlc: Fix build failure with --enable-hardcoded-tables
...
Found-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5c75438b89
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
8a89cce372
avformat/mov: Move +1 in check to avoid hypothetical overflow in add_ctts_entry()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit eb60b9d3aa
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
899d40c17f
avcodec/get_bits: Make sure the input bitstream with padding can be addressed
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e529fe7633
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
a89b45b492
avformat/mov: Check STSC and remove invalid entries
...
Fixes assertion failure
Fixes: crbug 822547, crbug 822666 and crbug 823009
Affects: aark15sd_9A62E2FA.mp4
Found-by: ClusterFuzz
Reviewed-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9e67447a4f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
5b586f0bc8
avcodec/nuv: rtjpeg with dimensions less than 16 would result in no decoded pixels thus reject it
...
Fixes: Timeout
Fixes: 6297/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-4882404863901696
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 939440ad1a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
719b9b673c
avcodec/nuv: Check for minimum input size for uncomprssed and rtjpeg
...
Fixes: Timeout
Fixes: 6297/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-4882404863901696
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8ee3265dbe
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
02bf1c617c
avcodec/wmalosslessdec: Reset num_saved_bits on error path
...
Fixes: NULL pointer dereference
Fixes: poc-201803.wav
Found-by: GwanYeong Kim <gy741.kim@gmail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 64c9ce0abc
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
edfe9ae63b
avformat/mov: Fix integer overflows related to sample_duration
...
Fixes: runtime error: signed integer overflow: -9166684017437101870 + -2495066639299164439 cannot be represented in type
Fixes: Chromium bug 791349
Reported-by: Matt Wolenetz <wolenetz@google.com >
Reviewed-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2f37082827
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
3a29fda42a
avformat/oggparsedaala: Do not adjust AV_NOPTS_VALUE
...
Fixes: potential signed integer overflow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f655ddfb47
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00
Michael Niedermayer
e61cdbe271
avformat/oggparseogm: Check lb against psize
...
No testcase, this was found during code review
Found-by: Matt Wolenetz <wolenetz@google.com >
Reviewed-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3e7c847aaf
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-04-13 00:35:15 +02:00