#9829 closed defect (fixed)

-decryption_key core dump

Reported by: Shuangxi,Li Owned by:
Priority: important Component: avformat
Version: git-master Keywords: crash mov
Cc: Marton Balint Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

encrypt segment.mp4 file:
ffmpeg -i segment.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 22bdb0063805260307ee5045c0f3835a -encryption_kid a7e61c373e219033c21091fa607bf3b8 segment_enc.mp4

decrypted:
C:\test>ffmpeg -decryption_key 22bdb0063805260307ee5045c0f3835a -i segment_enc.mp4 segment_dec.mp4
ffmpeg version 2022-06-30-git-03b2ed9a50-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 27.100 / 57. 27.100
libavcodec 59. 34.100 / 59. 34.100
libavformat 59. 25.100 / 59. 25.100
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 41.100 / 8. 41.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100

* buffer overflow detected *: terminated

Attachments (1)

segment.mp4 (995.9 KB ) - added by Shuangxi,Li 22 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Marton Balint, 22 months ago

Cc: Marton Balint added

Please attach the sample. Is it the same issue which your patch fixes here?
https://patchwork.ffmpeg.org/project/ffmpeg/patch/58e836a172fe4587a105b8e634242e50@huawei.com/

by Shuangxi,Li, 22 months ago

Attachment: segment.mp4 added

in reply to:  1 comment:2 by Shuangxi,Li, 22 months ago

Replying to Marton Balint:

Please attach the sample. Is it the same issue which your patch fixes here?
https://patchwork.ffmpeg.org/project/ffmpeg/patch/58e836a172fe4587a105b8e634242e50@huawei.com/

yes. It is.

comment:3 by Marton Balint, 22 months ago

Component: undeterminedavformat
Keywords: crash mov added
Priority: normalimportant
Resolution: fixed
Status: newclosed

Thanks, applied your patch with a better commit message.

Fixed in 046b05082dee1df500fc36b3db884101f7449383.

comment:4 by Marton Balint, 22 months ago

Component: undeterminedavformat
Keywords: crash mov added
Priority: normalimportant
Resolution: fixed
Status: newclosed

Thanks, applied your patch with a better commit message.

Fixed in 046b05082dee1df500fc36b3db884101f7449383.

Note: See TracTickets for help on using tickets.