CID 228074: Missing varargs init or cleanup in file-tiff-io.c

missing va_end: va_end was not called for ap_test.

(cherry picked from commit a7a18cc83f)
This commit is contained in:
Sabri Ünal 2019-10-20 10:32:57 +00:00 committed by Jehan
parent 61f7eb768c
commit 93a0b640d2
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,8 @@ tiff_io_warning (const gchar *module,
va_arg (ap_test, const char *); /* ignore first arg */
tag = va_arg (ap_test, int);
va_end (ap_test);
}
/* for older versions of libtiff? */
else if (! strcmp (fmt, "unknown field with tag %d (0x%x) ignored") ||
@ -160,6 +162,8 @@ tiff_io_warning (const gchar *module,
G_VA_COPY (ap_test, ap);
tag = va_arg (ap_test, int);
va_end (ap_test);
}
/* Workaround for: http://bugzilla.gnome.org/show_bug.cgi?id=131975