comparison src/core/ngx_md5.c @ 640:97a1e05203c2 NGINX_1_0_10

nginx 1.0.10 *) Bugfix: a segmentation fault might occur in a worker process if resolver got a big DNS response. Thanks to Ben Hawkes. *) Bugfix: in cache key calculation if internal MD5 implementation was used; the bug had appeared in 1.0.4. *) Bugfix: the module ngx_http_mp4_module sent incorrect "Content-Length" response header line if the "start" argument was used. Thanks to Piotr Sikora.
author Igor Sysoev <http://sysoev.ru>
date Tue, 15 Nov 2011 00:00:00 +0400
parents ad6fee8052d7
children
comparison
equal deleted inserted replaced
639:6a2ff3b3f4c4 640:97a1e05203c2
45 if (size < free) { 45 if (size < free) {
46 ngx_memcpy(&ctx->buffer[used], data, size); 46 ngx_memcpy(&ctx->buffer[used], data, size);
47 return; 47 return;
48 } 48 }
49 49
50 data = ngx_cpymem(&ctx->buffer[used], data, free); 50 ngx_memcpy(&ctx->buffer[used], data, free);
51 data = (u_char *) data + free;
51 size -= free; 52 size -= free;
52 (void) ngx_md5_body(ctx, ctx->buffer, 64); 53 (void) ngx_md5_body(ctx, ctx->buffer, 64);
53 } 54 }
54 55
55 if (size >= 64) { 56 if (size >= 64) {