cowboy me, 2.0: jose nazario beauty and the street


bug hunting: lq-text



similar reliabilty bug in lq-text, and also found via google codesearch static analysis. filed and fixed.



--- src/liblqutil/freadln.c.orig 2006-10-06 16:50:34.000000000 -0400 +++ src/liblqutil/freadln.c 2006-10-06 16:50:43.000000000 -0400 @@ -177,7 +177,7 @@ p > *Linep && (isascii(p[-1]) && isspace(p[-1])) ) { - if (&p[-1] > *Linep && p[-2] == '\\' && (Flags && LQUF_ESCAPEOK)) { + if (&p[-1] > *Linep && p[-2] == '\\' && (Flags & LQUF_ESCAPEOK))

break; /* This is the case where we must keep "\ " */ } *--p = '\0';

|

----

next Saturday, Oct 07, 2006 @ 02:04pm | previous Saturday, Oct 07, 2006 @ 02:00pm | archives

Last modified: Saturday, Oct 07, 2006 @ 02:02pm
Weblog Commenting and Trackback by HaloScan.com

Your Ad Here

copyright © 2002-2014 jose nazario, all rights reserved.