Bug 121

Summary: libgig stuck when opening an empty gig file
Product: libgig Reporter: Luis Garrido <luisgarrido>
Component: libgigAssignee: Christian Schoenebeck <cuse>
Status: CLOSED FIXED    
Severity: trivial    
Priority: P5    
Version: 3.2.1   
Hardware: PC   
OS: Linux   

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".