Deleted
Added
nxt_http_chunk_parse.c (1:fdc027c56872) | nxt_http_chunk_parse.c (611:323e11065f83) |
---|---|
1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8 --- 75 unchanged lines hidden (view full) --- 84 if (c <= 9) { 85 hcp->chunk_size = c; 86 continue; 87 } 88 89 c = (ch | 0x20) - 'a'; 90 91 if (c <= 5) { | 1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8 --- 75 unchanged lines hidden (view full) --- 84 if (c <= 9) { 85 hcp->chunk_size = c; 86 continue; 87 } 88 89 c = (ch | 0x20) - 'a'; 90 91 if (c <= 5) { |
92 hcp->chunk_size = 0x0a + c; | 92 hcp->chunk_size = 0x0A + c; |
93 continue; 94 } 95 96 goto chunk_error; 97 98 case sw_chunk_size: 99 100 c = ch - '0'; 101 102 if (c > 9) { 103 c = (ch | 0x20) - 'a'; 104 105 if (nxt_fast_path(c <= 5)) { | 93 continue; 94 } 95 96 goto chunk_error; 97 98 case sw_chunk_size: 99 100 c = ch - '0'; 101 102 if (c > 9) { 103 c = (ch | 0x20) - 'a'; 104 105 if (nxt_fast_path(c <= 5)) { |
106 c += 0x0a; | 106 c += 0x0A; |
107 108 } else if (nxt_fast_path(ch == NXT_CR)) { 109 state = sw_chunk_size_linefeed; 110 continue; 111 112 } else { 113 goto chunk_error; 114 } --- 149 unchanged lines hidden --- | 107 108 } else if (nxt_fast_path(ch == NXT_CR)) { 109 state = sw_chunk_size_linefeed; 110 continue; 111 112 } else { 113 goto chunk_error; 114 } --- 149 unchanged lines hidden --- |