diff --git a/gdm-2.18.0-dont-strcpy-overlapping-strings.patch b/gdm-2.18.0-dont-strcpy-overlapping-strings.patch new file mode 100644 index 0000000..a810bf1 --- /dev/null +++ b/gdm-2.18.0-dont-strcpy-overlapping-strings.patch @@ -0,0 +1,13 @@ +--- gdm-2.18.0/gui/gdmlanguages.c.dont-strcpy-overlapping-strings 2007-03-29 15:03:42.000000000 -0400 ++++ gdm-2.18.0/gui/gdmlanguages.c 2007-03-29 15:05:07.000000000 -0400 +@@ -445,7 +445,9 @@ + if (no_group) { + char *p = strchr (name, '|'); + if (p != NULL) { +- strcpy (name, p+1); ++ p = g_strdup (p + 1); ++ g_free (name); ++ name = p; + } + } + diff --git a/gdm.spec b/gdm.spec index 7fea04f..7b811b8 100644 --- a/gdm.spec +++ b/gdm.spec @@ -16,7 +16,7 @@ Summary: The GNOME Display Manager Name: gdm Version: 2.18.0 -Release: 6%{?dist} +Release: 7%{?dist} Epoch: 1 License: LGPL/GPL Group: User Interface/X @@ -67,6 +67,9 @@ Patch33: gdm-2.17.7-pass-at-to-session-4.patch # http://bugzilla.gnome.org/show_bug.cgi?id=420610 Patch34: gdm-2.18.0-add-lowres-fix.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=424229 +Patch35: gdm-2.18.0-dont-strcpy-overlapping-strings.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Prereq: /usr/sbin/useradd @@ -152,6 +155,7 @@ Extra icons / faces for the GNOME Display Manager. %patch32 -p0 -b .a11y-fixes %patch33 -p0 -b .pass-ats-to-session %patch34 -p1 -b .add-lowres-fix +%patch35 -p1 -b .dont-strcpy-overlapping-strings %build cp -f %{SOURCE1} config/gdm @@ -372,6 +376,9 @@ fi %{_datadir}/pixmaps/faces/extras/*.jpg %changelog +* Thu Mar 29 2007 Ray Strode - 1:2.18.0-7 +- don't strcpy overlapping strings (bug 208181). + * Tue Mar 27 2007 Matthias Clasen - 1:2.18.0-6 - Hide gdmphotosetup by default, since About Me does the same