mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 10:34:11 +00:00
printf: fix invalid memory access in case of %%
https://bugzilla.gnome.org/show_bug.cgi?id=748414
This commit is contained in:
parent
cde5a6fea3
commit
6c394643be
1 changed files with 5 additions and 0 deletions
|
@ -239,6 +239,11 @@ printf_postprocess_args (char_directives * directives, arguments * arguments)
|
|||
argument *a;
|
||||
|
||||
dp = &directives->dir[i];
|
||||
|
||||
/* %% has no arguments, for example */
|
||||
if (dp->arg_index < 0)
|
||||
continue;
|
||||
|
||||
a = &arguments->arg[dp->arg_index];
|
||||
|
||||
if (a->type == TYPE_POINTER_EXT) {
|
||||
|
|
Loading…
Reference in a new issue