comparison src/core/ngx_string.c @ 474:3a4102b00f97 NGINX_0_7_49

nginx 0.7.49 *) Change: a segmentation fault might occur in worker process, if the $arg_... variables were used; the bug had appeared in 0.7.48.
author Igor Sysoev <http://sysoev.ru>
date Mon, 06 Apr 2009 00:00:00 +0400
parents 09f0ef15d544
children 09b45263c817
comparison
equal deleted inserted replaced
473:66d24abdb0c2 474:3a4102b00f97
701 u_char * 701 u_char *
702 ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n) 702 ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n)
703 { 703 {
704 ngx_uint_t c1, c2; 704 ngx_uint_t c1, c2;
705 705
706 if (s1 <= last) {
707 return NULL;
708 }
709
706 c2 = (ngx_uint_t) *s2++; 710 c2 = (ngx_uint_t) *s2++;
707 c2 = (c2 >= 'A' && c2 <= 'Z') ? (c2 | 0x20) : c2; 711 c2 = (c2 >= 'A' && c2 <= 'Z') ? (c2 | 0x20) : c2;
708 last -= n; 712 last -= n;
709 713
710 do { 714 do {