[FFmpeg-devel] [PATCH v3 1/2] avformat/url: fix logic for removing ".." path components

Nicolas George george at nsup.org
Wed Jul 29 15:41:27 EEST 2020


Zlomek, Josef (12020-07-29):
> I also noticed that there are many more bugs in ff_make_absolute_url()
> I just fixed one of them.
> I am looking forward for your complete fix.

I think the key to a working version is to properly parse URLs first.
Then we can parse the base and relative part, and build the absolute URL
from the components, simplifying the path component, and only the path
component, at the same time.

Here is my preliminary code for parsing, in case somebody wants to look
at it.

Next step is to use it for rewriting ff_make_absolute_url(). Possibly,
use it for av_url_split() too.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-url-add-ff_url_decompose.patch
Type: text/x-diff
Size: 7084 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200729/325ce648/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200729/325ce648/attachment.sig>


More information about the ffmpeg-devel mailing list