NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: bin/56085: One can kind of run away with memory as bozodgetln grows a buffer to infinity



> Index: bozohttpd.c
> ===================================================================
> RCS file: /cvsroot/src/libexec/httpd/bozohttpd.c,v
> retrieving revision 1.128
> diff -r1.128 bozohttpd.c
> 859a860,864
> > 	if (!str) {
> > 		bozo_http_error(httpd, 400, request, "bad headers");
> > 		goto cleanup;
> > 	}

ah, this chunk makes the "return NULL" from the following chunk
work.  that's it's own problem.  there needs to be "nothing"
vs "error" cases here.


.mrg.


Home | Main Index | Thread Index | Old Index