diff -u desktop-file-utils-0.14/debian/changelog desktop-file-utils-0.14/debian/changelog --- desktop-file-utils-0.14/debian/changelog +++ desktop-file-utils-0.14/debian/changelog @@ -1,3 +1,10 @@ +desktop-file-utils (0.14-0ubuntu3) hardy; urgency=low + + * Fix segfault in desktop-file-validate when trying to parse a one character + long line (LP: #188073). + + -- Michael Bienia Fri, 01 Feb 2008 18:09:04 +0100 + desktop-file-utils (0.14-0ubuntu2) hardy; urgency=low * add bash completion for desktop-file-validate (LP: #175000) only in patch2: unchanged: --- desktop-file-utils-0.14.orig/src/validate.c +++ desktop-file-utils-0.14/src/validate.c @@ -1900,6 +1900,10 @@ char *chomped; gboolean result; + /* Check if line is long enough to contain a group header */ + if (strlen(line) < 3) + return FALSE; + chomped = g_strdup (line); g_strchomp (chomped);