[Xfce4-commits] r23401 - xarchiver/branches/xarchiver-psybsd/src
Stephan Arts
stephan at xfce.org
Fri Oct 13 12:53:43 UTC 2006
Author: stephan
Date: 2006-10-13 12:53:43 +0000 (Fri, 13 Oct 2006)
New Revision: 23401
Modified:
xarchiver/branches/xarchiver-psybsd/src/archive_store.c
Log:
Fixed buffer overflow
Modified: xarchiver/branches/xarchiver-psybsd/src/archive_store.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/archive_store.c 2006-10-13 12:46:31 UTC (rev 23400)
+++ xarchiver/branches/xarchiver-psybsd/src/archive_store.c 2006-10-13 12:53:43 UTC (rev 23401)
@@ -530,7 +530,12 @@
pos++;
if(store->sort_list)
- entry = store->sort_list[pos];
+ {
+ if(pos < lxa_entry_children_length(entry))
+ entry = store->sort_list[pos];
+ else
+ entry = NULL;
+ }
else
entry = lxa_entry_children_nth_data(store->archive, entry, pos);
More information about the Xfce4-commits
mailing list