Opened 2 years ago
Last modified 2 years ago
#9907 new defect
Unicode accented o crashes ffmpeg with concat
Reported by: | therube | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | git-master | Keywords: | concat |
Cc: | therube | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
Accented ó character when used with 'concat' crashes ffmpeg.
How to reproduce:
create 2 files (contents are immaterial, can be empty):
Tóp - Part 1.mp4
Tóp - Part 2.mp4
create a file, CONCAT3.TXT containing:
file 'Tóp - Part 1.mp4'
file 'Tóp - Part 2.mp4'
run the command:
ffmpeg -f concat -safe 0 -i CONCAT3.TXT -c copy "out.Tóp_CONCAT.mp4"
ffmpeg.exe from, https://github.com/GyanD/codexffmpeg/releases/tag/2022-09-05-git-2ed5925e26
Win7 x64
-report:
ffmpeg started on 2022-09-06 at 11:02:31
Report written to "ffmpeg-20220906-110231.log"
Log level: 48
Command line:
ffmpeg -report -f concat -safe 0 -i CONCAT3.TXT -c copy "out.T\xf3p_CONCAT.mp4"
ffmpeg version 2022-09-05-git-2ed5925e26-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 --ena libavutil 57. 36.101 / 57. 36.101
libavcodec 59. 42.104 / 59. 42.104
libavformat 59. 30.100 / 59. 30.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 48.100 / 8. 48.100
libswscale 6. 8.104 / 6. 8.104
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'concat'.
Reading option '-safe' ... matched as AVOption 'safe' with argument '0'.
Reading option '-i' ... matched as input url with argument 'CONCAT3.TXT'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option 'out.Tóp_CONCAT.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url CONCAT3.TXT.
Applying option f (force format) with argument concat.
Successfully parsed a group of options.
Opening an input file: CONCAT3.TXT.
[concat @ 00000000003d8f80] Opening 'CONCAT3.TXT' for reading
[file @ 00000000003d9580] Setting default whitelist 'file,crypto,data'
[NULL @ 00000000003fa980] Opening 'Tóp - Part 1.mp4' for reading
The issue is not going to "only" be accented ó (as ç works just as well - to crash things).
Now, for a WAG...
"an (incorrectly) ANSI-encoded string, evaluated as UTF8" ?