mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +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
db765a5fb8
commit
f4b2905700
1 changed files with 5 additions and 0 deletions
|
@ -234,6 +234,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