[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gtktalog-devel] fix a crash when scanning .zip archives
From: |
Dirk Jagdmann |
Subject: |
[Gtktalog-devel] fix a crash when scanning .zip archives |
Date: |
Sat, 19 Jun 2004 16:28:57 +0200 |
User-agent: |
Mozilla Thunderbird 0.7 (X11/20040615) |
Hello developers,
the attached patch is a fix to gtktalog 1.0.4.
It corrects a segmentation fault when scanning .zip archives.
As I'm not subscribed to this ML, please keep me on the CC in replies to
this message.
--
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org
diff -u -U 5 -r --new-file -x *~ -x *.[oa] gtktalog-1.0.4/src/gtktalog/vfs.c
gtktalog-1.0.4.doj/src/gtktalog/vfs.c
--- gtktalog-1.0.4/src/gtktalog/vfs.c Fri Jun 20 21:24:05 2003
+++ gtktalog-1.0.4.doj/src/gtktalog/vfs.c Sat Jun 19 16:12:03 2004
@@ -252,10 +252,12 @@
}
myseparator = convert_string_with_slashes (ve->separator->str);
result = extract_field (line, myseparator, fields, last_column);
g_free (myseparator);
g_array_free (fields, TRUE);
+ if(result==NULL)
+ return (FALSE);
if (result->len >= 2)
{
/* Get the size */
/****************/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gtktalog-devel] fix a crash when scanning .zip archives,
Dirk Jagdmann <=