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=%3zu", 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()
450 size_t remaining_size = packet->header.size - (size_t)(p - buf); in php_mysqlnd_greet_read()
486 DBG_ERR_FMT("GREET packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_greet_read()
488 p - begin - packet->header.size); in php_mysqlnd_greet_read()
690 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_auth_response_read()
699 buf[packet->header.size] = '\0'; in php_mysqlnd_auth_response_read()
707 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_auth_response_read()
715 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_auth_response_read()
720 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_auth_response_read()
746 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_auth_response_read()
749 if ((p - buf) > packet->header.size || packet->header.size - (p - buf) < net_len) { in php_mysqlnd_auth_response_read()
768 DBG_ERR_FMT("OK packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_auth_response_read()
770 p - begin - packet->header.size); in php_mysqlnd_auth_response_read()
860 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_ok_read()
871 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_ok_read()
893 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_ok_read()
909 DBG_ERR_FMT("OK packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_ok_read()
911 p - begin - packet->header.size); in php_mysqlnd_ok_read()
953 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_eof_read()
964 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_eof_read()
976 if (packet->header.size > 1) { in php_mysqlnd_eof_read()
996 DBG_ERR_FMT("EOF packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_eof_read()
998 p - begin - packet->header.size); in php_mysqlnd_eof_read()
1082 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_header_read()
1095 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_rset_header_read()
1115 len = packet->header.size - 1; in php_mysqlnd_rset_header_read()
1137 if (packet->header.size > (size_t) (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_rset_header_read()
1140 if ((p - buf) > packet->header.size || packet->header.size - (p - buf) < len) { in php_mysqlnd_rset_header_read()
1141 size_t local_file_name_over_read = ((p - buf) - packet->header.size) + len; in php_mysqlnd_rset_header_read()
1167 DBG_ERR_FMT("RSET_HEADER packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_header_read()
1169 p - begin - packet->header.size); in php_mysqlnd_rset_header_read()
1224 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_field_read()
1237 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_rset_field_read()
1243 } else if (EODATA_MARKER == *p && packet->header.size < 8) { in php_mysqlnd_rset_field_read()
1265 if ((size_t)((p - begin) + 12) > packet->header.size) { in php_mysqlnd_rset_field_read()
1300 if (packet->header.size > (size_t) (p - buf) && in php_mysqlnd_rset_field_read()
1370 DBG_ERR_FMT("RSET field packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_field_read()
1372 "shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_field_read()
1399 MYSQLND_PACKET_HEADER header; in php_mysqlnd_read_row_ex() local
1420 if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) { in php_mysqlnd_read_row_ex()
1428 while (header.size >= MYSQLND_MAX_PACKET_SIZE) { in php_mysqlnd_read_row_ex()
1429 buf = erealloc(buf, *data_size + header.size); 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()
1440 if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) { in php_mysqlnd_read_row_ex()
1446 buffer->ptr = pool->get_chunk(pool, *data_size + header.size + prealloc_more_bytes); in php_mysqlnd_read_row_ex()
1452 *data_size += header.size; in php_mysqlnd_read_row_ex()
1454 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1740 MYSQLND_HEADER_SIZE + packet->header.size, in php_mysqlnd_rowp_read()
1753 packet->header.size = data_size; in php_mysqlnd_rowp_read()
1807 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_stats_read()
1811 packet->message.s = mnd_emalloc(packet->header.size + 1); in php_mysqlnd_stats_read()
1812 memcpy(packet->message.s, buf, packet->header.size); in php_mysqlnd_stats_read()
1813 packet->message.s[packet->header.size] = '\0'; in php_mysqlnd_stats_read()
1814 packet->message.l = packet->header.size; in php_mysqlnd_stats_read()
1854 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_prepare_read()
1859 data_size = packet->header.size; in php_mysqlnd_prepare_read()
1910 DBG_ERR_FMT("PREPARE packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_prepare_read()
1912 p - begin - packet->header.size); in php_mysqlnd_prepare_read()
1936 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_chg_user_read()
1950 …if (packet->header.size == 1 && buf[0] == EODATA_MARKER && (packet->server_capabilities & CLIENT_S… in php_mysqlnd_chg_user_read()
1957 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_chg_user_read()
1965 if (packet->response_code == 0xFE && packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_chg_user_read()
1969 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_chg_user_read()
1980 DBG_ERR_FMT("CHANGE_USER packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_chg_user_read()
1982 p - begin - packet->header.size); in php_mysqlnd_chg_user_read()
2049 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_sha256_pk_request_response_read()
2057 packet->public_key_len = packet->header.size - (p - buf); in php_mysqlnd_sha256_pk_request_response_read()
2065 DBG_ERR_FMT("OK packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_sha256_pk_request_response_read()
2067 p - begin - packet->header.size); in php_mysqlnd_sha256_pk_request_response_read()
2128 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_cached_sha2_result_read()
2138 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_cached_sha2_result_read()
2146 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_cached_sha2_result_read()
2151 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_cached_sha2_result_read()
2177 DBG_ERR_FMT("OK packet %zu bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_cached_sha2_result_read()
2179 p - begin - packet->header.size); in php_mysqlnd_cached_sha2_result_read()
2277 packet->header.m = &packet_methods[PROT_GREET_PACKET]; in MYSQLND_METHOD()
2289 packet->header.m = &packet_methods[PROT_AUTH_PACKET]; in MYSQLND_METHOD()
2301 packet->header.m = &packet_methods[PROT_AUTH_RESP_PACKET]; in MYSQLND_METHOD()
2313 packet->header.m = &packet_methods[PROT_CHANGE_AUTH_RESP_PACKET]; in MYSQLND_METHOD()
2325 packet->header.m = &packet_methods[PROT_OK_PACKET]; in MYSQLND_METHOD()
2337 packet->header.m = &packet_methods[PROT_EOF_PACKET]; in MYSQLND_METHOD()
2349 packet->header.m = &packet_methods[PROT_CMD_PACKET]; in MYSQLND_METHOD()
2361 packet->header.m = &packet_methods[PROT_RSET_HEADER_PACKET]; in MYSQLND_METHOD()
2373 packet->header.m = &packet_methods[PROT_RSET_FLD_PACKET]; in MYSQLND_METHOD()
2385 packet->header.m = &packet_methods[PROT_ROW_PACKET]; in MYSQLND_METHOD()
2397 packet->header.m = &packet_methods[PROT_STATS_PACKET]; in MYSQLND_METHOD()
2409 packet->header.m = &packet_methods[PROT_PREPARE_RESP_PACKET]; in MYSQLND_METHOD()
2421 packet->header.m = &packet_methods[PROT_CHG_USER_RESP_PACKET]; in MYSQLND_METHOD()
2433 packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_PACKET]; in MYSQLND_METHOD()
2445 packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_RESPONSE_PACKET]; in MYSQLND_METHOD()
2456 packet->header.m = &packet_methods[PROT_CACHED_SHA2_RESULT_PACKET]; in MYSQLND_METHOD()