Commit 82169ba6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

imem: don't pass data pointer through MRL either

parent e1a6df96
......@@ -227,16 +227,16 @@ static int Open(vlc_object_t *object)
return VLC_EGENERIC;
}
/* Now we can parse the MRL (get/release must not be parsed to avoid
* security risks) */
if (*demux->psz_path)
ParseMRL(demux);
tmp = var_CreateGetString(demux, "imem-data");
if (tmp)
sys->source.data = (void*)(intptr_t)strtoll(tmp, NULL, 0);
free(tmp);
/* Now we can parse the MRL (get/release must not be parsed to avoid
* security risks) */
if (*demux->psz_path)
ParseMRL(demux);
msg_Dbg(demux, "Using get(%p) release(%p) and data(%p)",
sys->source.get, sys->source.release, sys->source.data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment