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
The following reply was made to PR bin/56085; it has been noted by GNATS.
From: matthew green <mrg%eterna.com.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: re: bin/56085: One can kind of run away with memory as bozodgetln grows a buffer to infinity
Date: Sun, 04 Apr 2021 09:37:43 +1000
> 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