diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-15 23:26:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-15 23:27:20 +0100 |
commit | d1e6602665d5ec1b7e211ab27b298c26139f82cc (patch) | |
tree | fb1259840dc64df2ba494e75a11b739c083087fa | |
parent | bf2ce19e51fde57727a4ee33a4b3c2622f37a5c4 (diff) | |
download | ffmpeg-streaming-d1e6602665d5ec1b7e211ab27b298c26139f82cc.zip ffmpeg-streaming-d1e6602665d5ec1b7e211ab27b298c26139f82cc.tar.gz |
avcodec/hevc: make *ps_id unsigned
Fixes integer overflow
Fixes out of array accesses
Fixes 2f65e7dbd02a12f426a423bd7bf880b4-signal_sigsegv_127c952_2793_cov_2517424539_RPLM_A_qualcomm_4.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index 7316418..fe9c4e9 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -380,7 +380,7 @@ typedef struct ScalingList { } ScalingList; typedef struct HEVCSPS { - int vps_id; + unsigned vps_id; int chroma_format_idc; uint8_t separate_colour_plane_flag; @@ -461,7 +461,7 @@ typedef struct HEVCSPS { } HEVCSPS; typedef struct HEVCPPS { - int sps_id; ///< seq_parameter_set_id + unsigned sps_id; ///< seq_parameter_set_id uint8_t sign_data_hiding_flag; |