Revision 6a245905 libavformat/mov.c

View differences:

libavformat/mov.c
1556 1556

  
1557 1557
static int mov_open_dref(ByteIOContext **pb, char *src, MOVDref *ref)
1558 1558
{
1559
    /* try absolute path */
1560
    if (!url_fopen(pb, ref->path, URL_RDONLY))
1561
        return 0;
1562

  
1563
    /* try relative path */
1559
    /* try relative path, we do not try the absolute because it can leak information about our
1560
       system to an attacker */
1564 1561
    if (ref->nlvl_to > 0 && ref->nlvl_from > 0) {
1565 1562
        char filename[1024];
1566 1563
        char *src_path;

Also available in: Unified diff