Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-21 19:59:36 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-24 17:28:14 +0300
commitf49375f28ff22af19d8a259bd21def5e876dc97b (patch)
tree2e0c24054f884b380a2511d1f193790750a1515d /libavutil/timestamp.h
parent73930e4f93032bf6638e9561042b49864070b101 (diff)
avutil/aes: Don't use out-of-bounds index
Up until now, av_aes_init() uses a->round_key[0].u8 + t as dst of memcpy where it is intended for t to greater than 16 (u8 is an uint8_t[16]); given that round_key itself is an array, it is actually intended for the dst to be in a latter round_key member. To do this properly, just cast a->round_key to unsigned char*. This fixes the srtp, aes, aes_ctr, mov-3elist-encrypted, mov-frag-encrypted and mov-tenc-only-encrypted FATE-tests with (Clang-)UBSan. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/timestamp.h')
0 files changed, 0 insertions, 0 deletions