flaw found....

Gary Kline kline at thought.org
Tue Jun 9 00:15:39 UTC 2009


	not surprisingly, i found a fla w in my getc(fp) program that
	tried to read past "<?" and "?>" ...  the example i added to my
	test file was simply the 2 bytes "<" and "?".  so if you have a 
	stray 

	"<?"

	with a matching close case, the binary hangs on a read.
	so, again, can anybody suggest a better example, in C, to get
	past two delimiters?

	one thought is how gcc parses the "/*" and "*/" comment
	delimiters.  any compiler gurus out there who know 
	where this code is?

	gary

	?

-- 
 Gary Kline  kline at thought.org  http://www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org
       For FBSD list: http://transfinite.thought.org/slicejourney.php




More information about the freebsd-questions mailing list