Bug 121 - libgig stuck when opening an empty gig file
Summary: libgig stuck when opening an empty gig file
Alias: None
Product: libgig
Classification: Unclassified
Component: libgig (show other bugs)
Version: 3.2.1
Hardware: PC Linux
: P5 trivial
Assignee: Christian Schoenebeck
Depends on:
Reported: 2009-03-10 23:59 CET by Luis Garrido
Modified: 2009-03-26 14:46 CET (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Luis Garrido 2009-03-10 23:59:12 CET
Not that is too important but if for some reason you try to open a zero-length
gig file libgig will get stuck, probably in some kind of infinite loop since the
cpu usage goes 100% and the program stops responding.

Steps to reproduce:

touch test.gig
gigdump test.gig
Comment 1 Christian Schoenebeck 2009-03-13 11:58:42 CET
I just commited a fix to libgig CVS. It will now throw this Riff::Exception on 
empty files: "Not a RIFF file".