office-gobmx/liblangtag/liblangtag-0.5.1-vsnprintf.patch
Eike Rathke 67a9f79219 new upstream release liblangtag-0.5.1
Change-Id: I4b71bbd3ff457d7b4fb2a409e8d34d8e4904acb3
Reviewed-on: https://gerrit.libreoffice.org/3676
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-04-30 20:21:30 +00:00

12 lines
400 B
Diff

diff -ru langtag.orig/liblangtag/lt-utils.c langtag/liblangtag/lt-utils.c
--- UnpackedTarball/langtag.orig/liblangtag/lt-utils.c 2013-04-22 10:06:57.000000000 +0200
+++ UnpackedTarball/langtag/liblangtag/lt-utils.c 2013-04-26 17:58:39.817351779 +0200
@@ -168,6 +168,8 @@
va_copy(ap, args);
size = vsnprintf(&c, 1, format, ap) + 1;
+ if (size == 0) // -1 + 1
+ abort();
va_end(ap);