Module Name: src Committed By: mrg Date: Fri Jan 18 05:48:31 UTC 2019
Modified Files: src/libexec/httpd: bozohttpd.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/libexec/httpd/bozohttpd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.