This fixes issue #38177.
* src/modules/standard/mod_log_forensic.c
(log_escape, log_before): s/assert/ap_assert/
Noticed by: Wilson Cheung <wcheung ucsd.edu>
Patch by: Jim Jagielski
Approved by: Jeff Trawick, André Malo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@367914
13f79535-47bb-0310-9956-
ffa450edef68
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
-#include <assert.h>
#include "multithread.h"
#ifdef NETWARE
static char *log_escape(char *q, const char *e, const char *p)
{
for ( ; *p ; ++p) {
- assert(q < e);
+ ap_assert(q < e);
if (test_char_table[*(unsigned char *)p]&T_ESCAPE_FORENSIC) {
- assert(q+2 < e);
+ ap_assert(q+2 < e);
*q++ = '%';
sprintf(q, "%02x", *(unsigned char *)p);
q += 2;
else
*q++ = *p;
}
- assert(q < e);
+ ap_assert(q < e);
*q = '\0';
return q;
ap_table_do(log_headers, &h, r->headers_in, NULL);
- assert(h.pos < h.end);
+ ap_assert(h.pos < h.end);
*h.pos++ = '\n';
write(cfg->fd, h.log, h.count-1);