diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-10 20:46:19 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-17 03:44:22 +0300 |
commit | f1840b070dd449ad25e1ebbab463f10863a5e0f1 (patch) | |
tree | f9e6506194b3237279dbd917bd38d3c6f4540a0a /libavformat | |
parent | b0017579b6e8de3d0d13dcfe0a4dd848dc6baa37 (diff) |
Revert "mov: Double-check that alias path is not an absolute path"
This reverts commit 9286de045968ad456d4e752651eec22de5e89060.
The change broke support for legit absolute file paths.
Reported-by: Maksym Veremeyenko <verem@m1stereo.tv>.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 66a03911e3..b78a1c39e8 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2394,7 +2394,7 @@ static int mov_open_dref(AVIOContext **pb, char *src, MOVDref *ref, { /* try relative path, we do not try the absolute because it can leak information about our system to an attacker */ - if (ref->nlvl_to > 0 && ref->nlvl_from > 0 && ref->path[0] != '/') { + if (ref->nlvl_to > 0 && ref->nlvl_from > 0) { char filename[1024]; char *src_path; int i, l; |