[FFmpeg-trac] #8814(avformat:open): Can't open HTTP URL whose file name contains ".."
FFmpeg
trac at avcodec.org
Fri Jul 24 17:57:22 EEST 2020
#8814: Can't open HTTP URL whose file name contains ".."
------------------------------------+-------------------------------------
Reporter: jzlomek | Owner: stevenliu
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: URL | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-------------------------------------
Comment (by stevenliu):
Replying to [comment:2 jzlomek]:
> I think this would not work if the file name ends with "..", for example
"xyz.."
> I guess we need to test if ".." is at the beginning of the string or
after "/",
> and ".." is at the end of the string or before "/".
Just try it please.
i think it should work, because just check the .. is directory or file.
but i think it maybe have safety problem, i will check there have next
byte by strlen(node).
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8814#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list