| /lighttpd1.4/src/ |
| H A D | burl.c | 61 const int used = (int)buffer_clen(b); in burl_normalize_basic_unreserved_fix() 101 const int used = (int)buffer_clen(b); in burl_normalize_basic_unreserved() 133 const int used = (int)buffer_clen(b); in burl_normalize_basic_required_fix() 177 const int used = (int)buffer_clen(b); in burl_normalize_basic_required() 213 const int used = (int)buffer_clen(b); in burl_contains_ctrls() 225 const int used = (int)buffer_clen(b); in burl_normalize_qs20_to_plus_fix() 241 const int used = qs < 0 ? 0 : (int)buffer_clen(b); in burl_normalize_qs20_to_plus() 254 const int blen = (int)buffer_clen(b); in burl_normalize_2F_to_slash_fix() 279 const int used = qs < 0 ? (int)buffer_clen(b) : qs; in burl_normalize_2F_to_slash() 294 const int used = (int)buffer_clen(b); in burl_normalize_path() [all …]
|
| H A D | array.c | 518 const uint32_t klen = buffer_clen(key); in array_match_key_prefix_klen() 530 const uint32_t klen = buffer_clen(key); in array_match_key_prefix_nc_klen() 555 const uint32_t blen = buffer_clen(b); in array_match_value_prefix() 569 const uint32_t blen = buffer_clen(b); in array_match_value_prefix_nc() 583 const uint32_t blen = buffer_clen(b); in array_match_key_suffix() 588 const uint32_t klen = buffer_clen(key); in array_match_key_suffix() 598 const uint32_t blen = buffer_clen(b); in array_match_key_suffix_nc() 603 const uint32_t klen = buffer_clen(key); in array_match_key_suffix_nc() 613 const uint32_t blen = buffer_clen(b); in array_match_value_suffix() 628 const uint32_t blen = buffer_clen(b); in array_match_value_suffix_nc() [all …]
|
| H A D | mod_proxy.c | 399 size_t mlen = buffer_clen(k); in http_header_remap_host_match() 409 mlen = buffer_clen(k); in http_header_remap_host_match() 451 const size_t mlen = buffer_clen(&ds->key); in http_header_remap_urlpath() 504 alen = buffer_clen(b) - off; in http_header_remap_uri() 630 size_t used = buffer_clen(xff); in proxy_set_Forwarded() 809 const off_t len = (off_t)buffer_clen(tb) in proxy_stdin_append() 855 http_header_remap_uri(b, buffer_clen(b) - buffer_clen(&r->target), in proxy_create_env() 873 size_t alen = buffer_clen(r->http_host); in proxy_create_env() 949 const uint32_t klen = buffer_clen(&ds->key); in proxy_create_env() 950 const uint32_t vlen = buffer_clen(&ds->value); in proxy_create_env() [all …]
|
| H A D | mod_alias.c | 55 const size_t plen = buffer_clen(prefix); in mod_alias_check_order() 58 if (buffer_clen(key) < plen) { in mod_alias_check_order() 124 uint32_t basedir_len = buffer_clen(&r->physical.basedir); in mod_alias_remap() 127 const uint32_t path_len = buffer_clen(&r->physical.path); in mod_alias_remap() 140 const uint32_t alias_len = buffer_clen(&ds->key); in mod_alias_remap() 141 const uint32_t vlen = buffer_clen(&ds->value); in mod_alias_remap()
|
| H A D | http_cgi.c | 46 size_t ulen = buffer_clen(&r->uri.path); in http_cgi_local_redir() 138 n = buffer_clen(&r->uri.query); in http_cgi_headers() 143 n = buffer_clen(&r->target_orig); in http_cgi_headers() 144 len = opts->strip_request_uri ? buffer_clen(opts->strip_request_uri) : 0; in http_cgi_headers() 233 n = buffer_clen(r->conf.server_tag); in http_cgi_headers() 252 const size_t tlen = buffer_clen(srv_sock->srv_token); in http_cgi_headers() 294 n = buffer_clen(r->server_name); in http_cgi_headers()
|
| H A D | buffer.h | 256 #define BUFFER_INTLEN_PTR(x) (int)buffer_clen(x), (x)->ptr 257 #define BUF_PTR_LEN(x) (x)->ptr, buffer_clen(x) 282 static inline uint32_t buffer_clen (const buffer *b); 283 static inline uint32_t buffer_clen (const buffer *b) { in buffer_clen() function 330 const uint32_t len = buffer_clen(b); in buffer_append_slash() 388 return NULL != b ? buffer_clen(b) : 0; in buffer_string_length() 403 buffer_extend(b, len - buffer_clen(b)); in buffer_string_set_length()
|
| H A D | sock_addr_cache.c | 55 memcpy(ntop4_strs+ndx4, b->ptr, buffer_clen(b)+1); in sock_addr_cache_inet_ntop_copy_buffer() 61 memcpy(ntop6_strs+ndx6, b->ptr, buffer_clen(b)+1); in sock_addr_cache_inet_ntop_copy_buffer()
|
| H A D | keyvalue.c | 296 const uint32_t len = buffer_clen(target); in pcre_keyvalue_buffer_subst_ext() 361 const size_t pattern_len = buffer_clen(patternb); in pcre_keyvalue_buffer_subst() 459 const int used = (int)buffer_clen(b); in pcre_keyvalue_burl_percent_toupper() 473 const int used = (int)buffer_clen(b); in pcre_keyvalue_burl_percent_percent_toupper() 491 const int used = (int)buffer_clen(b); in pcre_keyvalue_burl_percent_high_UTF8() 515 const int used = (int)buffer_clen(b); in pcre_keyvalue_burl_percent_percent_high_UTF8()
|
| H A D | http_etag.c | 23 uint32_t etag_sz = buffer_clen(etag); in http_etag_matches() 51 uint32_t elen = buffer_clen(etag); in http_etag_remix()
|
| H A D | mod_scgi.c | 209 buffer_append_int(tb, buffer_clen(b)-10); in scgi_create_env() 211 len = buffer_clen(tb); in scgi_create_env() 217 size_t len = buffer_clen(b)-10; in scgi_create_env() 232 hctx->wb_reqlen = buffer_clen(b) - offset; in scgi_create_env()
|
| H A D | response.c | 45 const size_t klen = buffer_clen(&ds->key); in http_response_omit_header() 140 const uint32_t klen = buffer_clen(&ds->key); in http_response_write_header() 141 const uint32_t vlen = buffer_clen(&ds->value); in http_response_write_header() 176 r->resp_header_len = buffer_clen(b); in http_response_write_header() 246 size_t len = buffer_clen(&r->physical.basedir) in http_response_physical_path_check() 284 && len <= (reqlen = buffer_clen(&r->target)) in http_response_physical_path_check() 299 buffer_truncate(&r->uri.path, buffer_clen(&r->uri.path) - len); in http_response_physical_path_check() 478 size_t len = buffer_clen(b); in http_response_prepare()
|
| H A D | mod_wstunnel.c | 422 olen = origin ? buffer_clen(origin) : 0; in wstunnel_is_allowed_origin() 431 size_t blen = buffer_clen(b); in wstunnel_is_allowed_origin() 683 for (size_t i = 0, used = buffer_clen(b); i < used; ++i) { in get_key_number() 943 size_t flen = (size_t)(buffer_clen(c->mem) - c->offset); in recv_ietf_00() 1000 size_t len = buffer_clen(payload); in recv_ietf_00() 1004 len = buffer_clen(b); in recv_ietf_00() 1015 hctx->gw.wb.bytes_in += buffer_clen(b)-len; in recv_ietf_00() 1115 for (size_t i = 0, used = buffer_clen(b); i < used; ++i) { in unmask_payload() 1130 size_t flen = (size_t)(buffer_clen(c->mem) - c->offset); in recv_rfc_6455() 1276 payload->ptr, buffer_clen(payload)); in recv_rfc_6455()
|
| H A D | mod_vhostdb_pgsql.c | 132 buffer_clen(&r->uri.authority) * 2); in mod_vhostdb_pgsql_query() 134 sqlquery->ptr + buffer_clen(sqlquery), in mod_vhostdb_pgsql_query() 139 d = dbconf->sqlquery->ptr + buffer_clen(dbconf->sqlquery); in mod_vhostdb_pgsql_query()
|
| H A D | connections.c | 395 const uint32_t klen = buffer_clen(&ds->key); in connection_send_1xx() 396 const uint32_t vlen = buffer_clen(&ds->value); in connection_send_1xx() 599 return (c && (size_t)c->offset + olen < buffer_clen(c->mem)) in connection_read_header_more() 669 clen = buffer_clen(c->mem) - c->offset; in connection_handle_read_state() 740 if (buffer_clen(c->mem) < hoff[1]) { in connection_handle_read_state() 1595 const uint32_t mlen = buffer_clen(c->mem) - (size_t)c->offset; in connection_handle_read_post_cq_compact() 1597 const uint32_t blen = buffer_clen(c->mem) - (size_t)c->offset; in connection_handle_read_post_cq_compact() 1626 len = buffer_clen(b) - (size_t)c->offset; in connection_handle_read_post_chunked_crlf() 1631 len = buffer_clen(b) - (size_t)c->offset; in connection_handle_read_post_chunked_crlf() 1719 p = c->mem->ptr + buffer_clen(c->mem) in connection_handle_read_post_chunked() [all …]
|
| H A D | http-header-glue.c | 61 size_t olen = buffer_clen(o); in http_response_buffer_append_authority() 63 lhost_len = buffer_clen(o) - olen; in http_response_buffer_append_authority() 720 off_t len = (off_t)buffer_clen(mem); in http_response_append_buffer() 745 && http_response_append_buffer_simple_accum(r, buffer_clen(mem))) { in http_response_append_buffer() 840 wr = buffer_clen(c->mem) - c->offset; in http_response_transfer_cqlen() 1125 blen = buffer_clen(b); in http_response_parse_headers() 1259 uint32_t blen = buffer_clen(b); in http_response_read() 1326 n = read(fd, b->ptr+buffer_clen(b), avail); in http_response_read() 1350 b->ptr[buffer_clen(b)+n] = '\0'; in http_response_read()
|
| H A D | mod_accesslog.c | 494 uint32_t len = buffer_clen(fstr); in mod_accesslog_process_format() 637 size_t len = buffer_clen(name); in accesslog_append_cookie() 711 ptr = b->ptr + buffer_clen(b); in accesslog_append_time() 804 force_assert(buffer_clen(r->dst_addr_buf) > 2); in accesslog_append_remote_addr_masked() 807 for (i = buffer_clen(r->dst_addr_buf)-1; s[--i] != '.'; ) ; in accesslog_append_remote_addr_masked() 842 const uint32_t tlen = buffer_clen(srv_token); in log_access_record_cold() 857 const uint32_t len = buffer_clen(&r->target); in log_access_record_cold() 1010 if (flush || fdlog->mode == FDLOG_PIPE || buffer_clen(b) >= 8192) { in REQUESTDONE_FUNC()
|
| H A D | mod_vhostdb_mysql.c | 152 buffer_clen(&r->uri.authority) * 2); in mod_vhostdb_mysql_query() 154 sqlquery->ptr + buffer_clen(sqlquery), in mod_vhostdb_mysql_query() 159 d = dbconf->sqlquery->ptr + buffer_clen(dbconf->sqlquery); in mod_vhostdb_mysql_query()
|
| H A D | log.c | 130 memcpy(b->ptr+buffer_clen(b)-nlen-2, n, nlen); in __attribute_nonnull__() 185 size_t blen = buffer_clen(b); in __attribute_nonnull__() 331 const uint32_t prefix_len = buffer_clen(b); in log_error_multiline()
|
| H A D | http_range.c | 221 const uint32_t prefix_len = buffer_clen(tb); in http_range_multi() 300 if (buffer_clen(http_range) < sizeof("bytes=")-1 in http_range_process() 383 && buffer_clen(content_type) >= sizeof("multipart/byteranges")-1 in http_range_rfc7233()
|
| H A D | mod_authn_file.c | 312 ai.ulen = buffer_clen(username); in mod_authn_file_htdigest_basic() 314 ai.rlen = buffer_clen(require->realm); in mod_authn_file_htdigest_basic() 408 size_t tblen = (buffer_clen(tb) + 63) & ~63u; in mod_authn_file_plain_digest() 423 size_t tblen = (buffer_clen(tb) + 63) & ~63u; in mod_authn_file_plain_basic() 703 uint32_t tblen = buffer_clen(tb); in mod_authn_file_htpasswd_basic()
|
| H A D | request.c | 110 uint32_t len = buffer_clen(host); in request_check_hostname() 201 const size_t blen = buffer_clen(b); in http_request_host_normalize() 229 n = buffer_clen(b); in http_request_host_normalize() 619 const uint32_t len = buffer_clen(&r->target);/*(http_header_strict)*/ in http_request_validate_pseudohdrs() 1007 len = buffer_clen(target); in http_request_parse_target() 1021 size_t rlen = buffer_clen(target); in http_request_parse_target() 1032 const uint32_t rlen = buffer_clen(target); in http_request_parse_target()
|
| H A D | mod_fastcgi.c | 169 if (len > fmax - buffer_clen(env)) in fcgi_env_add() 278 buffer_clen(b) - sizeof(FCGI_BeginRequestRecord) - sizeof(FCGI_Header), 0); in fcgi_create_env() 284 hctx->wb_reqlen = buffer_clen(b); in fcgi_create_env() 346 const uint32_t blen = buffer_clen(b); in fastcgi_get_packet_body()
|
| H A D | chunk.c | 433 ? (off_t)buffer_clen(c->mem) in chunk_remaining_length() 528 const size_t len = buffer_clen(mem); in chunkqueue_append_buffer() 592 cq->bytes_in += buffer_clen(cq->first->mem); in chunkqueue_prepend_buffer_commit() 608 cq->bytes_in += buffer_clen(cq->last->mem); in chunkqueue_append_buffer_commit() 622 return b->ptr + buffer_clen(b); in chunkqueue_get_memory() 1292 size_t len = buffer_clen(b) - c->offset; in chunkqueue_compact_mem_offset() 1303 size_t len = buffer_clen(b) - c->offset; in chunkqueue_compact_mem() 1319 len = buffer_clen(c->mem) - c->offset; in chunkqueue_compact_mem() 1441 const size_t len = buffer_clen(c->mem) - (size_t)c->offset; in chunkqueue_write_chunk_mem() 1565 uint32_t have = buffer_clen(c->mem) - (uint32_t)c->offset; in chunkqueue_peek_data()
|
| H A D | http_chunk.c | 211 size_t len = mem ? buffer_clen(mem) : 0; in http_chunk_append_buffer() 313 uint32_t hlen = buffer_clen(h); in http_chunk_decode_append_data() 371 uint32_t mlen = buffer_clen(h); in http_chunk_decode_append_data()
|
| /lighttpd1.4/src/t/ |
| H A D | test_mod_staticfile.c | 66 assert(vb && vb->ptr[0] == '"' && vb->ptr[buffer_clen(vb)-1] == '"'); in test_http_response_send_file() 72 const uint32_t plen = buffer_clen(&r->physical.path); in test_http_response_send_file() 237 etag->ptr, buffer_clen(etag)-1); in test_http_response_send_file() 244 etag->ptr+1, buffer_clen(etag)-2); in test_http_response_send_file()
|