Lines Matching refs:header

28 	if (UNEXPECTED((size_t)(p - begin) > packet->header.size)) { \
242 mysqlnd_read_header(MYSQLND_PFC * pfc, MYSQLND_VIO * vio, MYSQLND_PACKET_HEADER * header, in mysqlnd_read_header() argument
253 header->size = uint3korr(buffer); in mysqlnd_read_header()
254 header->packet_no = uint1korr(buffer + 3); in mysqlnd_read_header()
256 DBG_INF_FMT("HEADER: prot_packet_no=%u size=%3u", header->packet_no, header->size); in mysqlnd_read_header()
261 if (pfc->data->compressed || pfc->data->packet_no == header->packet_no) { in mysqlnd_read_header()
272 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
275 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
339 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_greet_read()
347 if (packet->header.size < sizeof(buf)) { in php_mysqlnd_greet_read()
352 buf[packet->header.size] = '\0'; in php_mysqlnd_greet_read()
360 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_greet_read()
415 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
425 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
463 DBG_ERR_FMT("GREET packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_greet_read()
465 p - begin - packet->header.size); in php_mysqlnd_greet_read()
667 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_auth_response_read()
676 buf[packet->header.size] = '\0'; in php_mysqlnd_auth_response_read()
684 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_auth_response_read()
692 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_auth_response_read()
697 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_auth_response_read()
723 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_auth_response_read()
738 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_auth_response_read()
740 p - begin - packet->header.size); in php_mysqlnd_auth_response_read()
830 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_ok_read()
841 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_ok_read()
863 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_ok_read()
879 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_ok_read()
881 p - begin - packet->header.size); in php_mysqlnd_ok_read()
923 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_eof_read()
934 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_eof_read()
946 if (packet->header.size > 1) { in php_mysqlnd_eof_read()
966 DBG_ERR_FMT("EOF packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_eof_read()
968 p - begin - packet->header.size); in php_mysqlnd_eof_read()
1052 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_header_read()
1065 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_rset_header_read()
1085 len = packet->header.size - 1; in php_mysqlnd_rset_header_read()
1112 if (packet->header.size > (size_t) (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_rset_header_read()
1136 DBG_ERR_FMT("RSET_HEADER packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_header_read()
1138 p - begin - packet->header.size); in php_mysqlnd_rset_header_read()
1196 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_field_read()
1209 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_rset_field_read()
1215 } else if (EODATA_MARKER == *p && packet->header.size < 8) { in php_mysqlnd_rset_field_read()
1237 if ((size_t)((p - begin) + 12) > packet->header.size) { in php_mysqlnd_rset_field_read()
1277 if (packet->header.size > (size_t) (p - buf) && in php_mysqlnd_rset_field_read()
1349 DBG_ERR_FMT("RSET field packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_field_read()
1351 "shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_field_read()
1378 MYSQLND_PACKET_HEADER header; in php_mysqlnd_read_row_ex() local
1399 if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) { in php_mysqlnd_read_row_ex()
1407 while (header.size >= MYSQLND_MAX_PACKET_SIZE) { in php_mysqlnd_read_row_ex()
1408 buf = erealloc(buf, *data_size + header.size); in php_mysqlnd_read_row_ex()
1410 *data_size += header.size; in php_mysqlnd_read_row_ex()
1412 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1419 if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) { in php_mysqlnd_read_row_ex()
1425 buffer->ptr = pool->get_chunk(pool, *data_size + header.size + prealloc_more_bytes); in php_mysqlnd_read_row_ex()
1431 *data_size += header.size; in php_mysqlnd_read_row_ex()
1433 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1742 MYSQLND_HEADER_SIZE + packet->header.size, in php_mysqlnd_rowp_read()
1755 packet->header.size = data_size; in php_mysqlnd_rowp_read()
1856 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_stats_read()
1860 packet->message.s = mnd_emalloc(packet->header.size + 1); in php_mysqlnd_stats_read()
1861 memcpy(packet->message.s, buf, packet->header.size); in php_mysqlnd_stats_read()
1862 packet->message.s[packet->header.size] = '\0'; in php_mysqlnd_stats_read()
1863 packet->message.l = packet->header.size; in php_mysqlnd_stats_read()
1906 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_prepare_read()
1911 data_size = packet->header.size; in php_mysqlnd_prepare_read()
1962 DBG_ERR_FMT("PREPARE packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_prepare_read()
1964 p - begin - packet->header.size); in php_mysqlnd_prepare_read()
1988 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_chg_user_read()
2002 …if (packet->header.size == 1 && buf[0] == EODATA_MARKER && (packet->server_capabilities & CLIENT_S… in php_mysqlnd_chg_user_read()
2009 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_chg_user_read()
2017 if (packet->response_code == 0xFE && packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_chg_user_read()
2021 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_chg_user_read()
2032 DBG_ERR_FMT("CHANGE_USER packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_chg_user_read()
2034 p - begin - packet->header.size); in php_mysqlnd_chg_user_read()
2101 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_sha256_pk_request_response_read()
2109 packet->public_key_len = packet->header.size - (p - buf); in php_mysqlnd_sha256_pk_request_response_read()
2117 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_sha256_pk_request_response_read()
2119 p - begin - packet->header.size); in php_mysqlnd_sha256_pk_request_response_read()
2180 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_cached_sha2_result_read()
2190 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_cached_sha2_result_read()
2198 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_cached_sha2_result_read()
2203 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_cached_sha2_result_read()
2229 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_cached_sha2_result_read()
2231 p - begin - packet->header.size); in php_mysqlnd_cached_sha2_result_read()
2329 packet->header.m = &packet_methods[PROT_GREET_PACKET]; in MYSQLND_METHOD()
2341 packet->header.m = &packet_methods[PROT_AUTH_PACKET]; in MYSQLND_METHOD()
2353 packet->header.m = &packet_methods[PROT_AUTH_RESP_PACKET]; in MYSQLND_METHOD()
2365 packet->header.m = &packet_methods[PROT_CHANGE_AUTH_RESP_PACKET]; in MYSQLND_METHOD()
2377 packet->header.m = &packet_methods[PROT_OK_PACKET]; in MYSQLND_METHOD()
2389 packet->header.m = &packet_methods[PROT_EOF_PACKET]; in MYSQLND_METHOD()
2401 packet->header.m = &packet_methods[PROT_CMD_PACKET]; in MYSQLND_METHOD()
2413 packet->header.m = &packet_methods[PROT_RSET_HEADER_PACKET]; in MYSQLND_METHOD()
2425 packet->header.m = &packet_methods[PROT_RSET_FLD_PACKET]; in MYSQLND_METHOD()
2437 packet->header.m = &packet_methods[PROT_ROW_PACKET]; in MYSQLND_METHOD()
2449 packet->header.m = &packet_methods[PROT_STATS_PACKET]; in MYSQLND_METHOD()
2461 packet->header.m = &packet_methods[PROT_PREPARE_RESP_PACKET]; in MYSQLND_METHOD()
2473 packet->header.m = &packet_methods[PROT_CHG_USER_RESP_PACKET]; in MYSQLND_METHOD()
2485 packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_PACKET]; in MYSQLND_METHOD()
2497 packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_RESPONSE_PACKET]; in MYSQLND_METHOD()
2508 packet->header.m = &packet_methods[PROT_CACHED_SHA2_RESULT_PACKET]; in MYSQLND_METHOD()