Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 125614 | Differences between
and this patch

Collapse All | Expand All

(-)src/rararchive.cc.orig (+8 lines)
Lines 163-168 Link Here
163
			
163
			
164
			char buf[4];
164
			char buf[4];
165
			file->read(buf,3);
165
			file->read(buf,3);
166
167
			//for some rar files there are seeks past file end, then directly to file end
168
			//which makes file->good() return true, but there is nothing to read
169
			//so with file->gcount() we check if we actually read something
170
			//otherwise we use old bufer and crash somewhere
171
			if(file->gcount()==0)
172
				break;
173
166
			file->seekg (-3, std::ios::cur);
174
			file->seekg (-3, std::ios::cur);
167
			
175
			
168
			switch( buf[2] )
176
			switch( buf[2] )

Return to bug 125614