Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0324/3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


gif: avoid stack underflow
 [rsc] --rw-rw-r-- M 1115807 glenda sys 10472 Mar 24 12:22 sys/src/cmd/jpg/readgif.c
	/n/sourcesdump/2006/0324/plan9/sys/src/cmd/jpg/readgif.c:451,457 - 
	/n/sourcesdump/2006/0325/plan9/sys/src/cmd/jpg/readgif.c:451,457
	  				fprint(2, "ReadGIF: GIF invalid, code out of range, %x > %x\n", code, nentry);
	  				code = nentry;
	  			}
	- 			for(c=code; c>=0; c=tbl[c].prefix)
	+ 			for(c=code; stacki>0 && c>=0; c=tbl[c].prefix)
	  				stack[stacki--] = tbl[c].exten;
	  
	  			nb = (sizeof stack)-(stacki+1);


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].