mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-14 17:12:43 +02:00
v3.7.4 was released in 2013, so this is a little overdue... * Bump to EAPI=8 * Fix build with CFLAGS=-lflto (bug #855011) * Fix build to call toolchain's AR (bug #729564) * Add (+) to x11-libs/libXaw3d's unicode USE-dep * Run gnuconfig_update since the included config.guess is ancient * Apply a bunch of patches from Fedora Closes: https://bugs.gentoo.org/729564 Closes: https://bugs.gentoo.org/855011 Signed-off-by: Matt Turner <mattst88@gentoo.org>
27 lines
950 B
Diff
27 lines
950 B
Diff
Fix buffer overflows in resource.c
|
|
https://savannah.gnu.org/patch/?10096
|
|
https://src.fedoraproject.org/rpms/gv/blob/rawhide/f/gv-overflow.patch
|
|
|
|
diff a/src/resource.c b/src/resource.c
|
|
--- a/src/resource.c
|
|
+++ b/src/resource.c
|
|
@@ -230,15 +230,15 @@ resource_buildDatabase (
|
|
s = resource_getResource(db,app_class,app_name, "international",0);
|
|
if (s == NULL || !strcasecmp(s, "False"))
|
|
{
|
|
- sprintf(locale1, "noint:%s%s", loc_lang, loc_terr);
|
|
- sprintf(locale2, "noint:%s", loc_lang);
|
|
+ snprintf(locale1, 100, "noint:%s%s", loc_lang, loc_terr);
|
|
+ snprintf(locale2, 100, "noint:%s", loc_lang);
|
|
strcpy(locale3, "C");
|
|
}
|
|
else
|
|
{
|
|
strcpy(locale1, locale);
|
|
- sprintf(locale2, "%s%s%s", loc_lang, loc_terr, loc_cs);
|
|
- sprintf(locale3, "%s%s", loc_lang, loc_cs);
|
|
+ snprintf(locale2, 100, "%s%s%s", loc_lang, loc_terr, loc_cs);
|
|
+ snprintf(locale3, 100, "%s%s", loc_lang, loc_cs);
|
|
}
|
|
|
|
if (debug_p)
|