Package: fatsort Version: 0.9.12 When invoking fatsort, it might crash while sorting the directory tree with a segmentation fault.
This error is due to malloc'ing without proper initialization in the function insertLongDirEntryList in entrylist.c, beginning in line 88. In line 98 a struct sLongDirEntryList gets malloc'ed, but the memory (especially the "next" member) does not get initialized. As in the while loop beginning with line 111 there is a test of of the "next" member against NULL, it might happen that malloc returns memory where the "next" member is not NULL; it will get dereferenced in line 112, leading to a segmentation fault. Fix: set "next" member to NULL explicitly after malloc'ing the "new" data structure in line 98. Debian unstable, customized 2.6.28.9 Linux kernel, libc6 2.9-7
signature.asc
Description: Digital signature