stops after generating 5-6 thumbnails
Bug #499599 reported by
Hadmut Danisch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-raw-thumbnailer (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-raw-
Hi,
when I open a directory with plenty of raw images with nautilus, it generates only about 4-6 thumbnails, then it stops generating thumbnails until gnome is restarted.Maybe a timeout problem.
ProblemType: Bug
Architecture: i386
Date: Tue Dec 22 22:10:04 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: gnome-raw-
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
LC_MESSAGES=
SHELL=/bin/tcsh
ProcVersionSign
SourcePackage: gnome-raw-
Uname: Linux 2.6.31-16-generic i686
To post a comment you must log in.
OK, I found two bugs:
- gnome-raw- thumbnailer parses Sony RAW files like TIFF files and recursively parses the TIFF-Tree-Tag 014a. However, thumbnailer is poorly written software without any range check or
Sony RAW files have these tags and the offset as described, but there seems to be no regular IFD structure at this place, but
some different sort of data. On the other hand, gnome-raw-
catching error states. So it runs into an undefined loop when parsing Sony files. But when commenting out that recursive
call, it works. (But I have no idea whether this breaks reading other file formats than Sony).
- at the end of main() there's a g_free (fname) which causes a segmentation fault. Commenting this out might leave some memory allocated, which doesn't really cause problems because the program terminates immediately. But it lets the program terminate cleanly and without segfault.
After fixing these to problems it works for me (at least for sony files). Don't know if blocking the recursion of 014a tags causes any trouble with other file formats.
regards