[w3m-dev 04017] Re: w3m ハング アップ

Hiroyuki Ito <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Message-ID <[email protected]>

> 
> 




[w3m-dev 03972]  gdk-pixbuf 
 gif image  gdk-pixbuf  io-gif.c  lzw_read_byte() 
 context->lzw_table 

 gif 


gdk-pixbuf 0.22  patch 





--- io-gif.c.old	2003-11-04 19:05:27.000000000 +0900
+++ io-gif.c	2003-11-04 19:06:04.000000000 +0900
@@ -525,7 +525,7 @@
 				context->lzw_table[0][i] = 0;
 				context->lzw_table[1][i] = i;
 			}
-			for (; i < (1 << MAX_LZW_BITS); ++i)
+			for (; i < context->lzw_max_code && i < (1 << MAX_LZW_BITS); ++i)
 				context->lzw_table[0][i] = context->lzw_table[1][i] = 0;
 			context->lzw_code_size = context->lzw_set_code_size + 1;
 			context->lzw_max_code_size = 2 * context->lzw_clear_code;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.