httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [BUG] rprintf SEGVs if given NULL for %S
Date Fri, 14 Feb 1997 18:50:22 GMT
Rodent of Unusual Size wrote:
> 
>     In tracking down a SEGV I was getting, I found that vbprintf() isn't
>     being paranoid about bad %s arguments.  The following will SEGV
>     rather than sending "(null)":
> 
>       rprintf (r, "%s", NULL)
> 
>     Is this worth adding the necessary paranoia code, or is this a case
>     of "don't do that"?  I'm inclined to think the former, but there it
>     is..
> 

If it's easy to add, I'd vote for the former... SEGV's do give
an indication of you're referencing NULL someplace you shouldn't
but having the code actually point it out is nice.

-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message