NetBSD/src wvDrf51 — libexec/httpd bozohttpd.c
fix a few problems pointed out by clang static analyzer, from rajeev_v_pillai: - bozostrnsep() may return with "in = NULL", so check for it. - nul terminating in bozo_escape_rfc3986() can be simpler - don't use uniinit variables in check_remap() - don't use re-used freed data in check_virtual(). this one is tricky as the original code was: free(request->hr_file); request->hr_file = bozostrdup(httpd, request, s ? s : "/"); however, bozostrdup() may reference request->hr_file.
Version | Delta | File | |
---|---|---|---|
1.109 | +14 | -12 | libexec/httpd/bozohttpd.c |
+14 | -12 | 1 files |