Fixed build issues due to missing headers.
This commit is contained in:
parent
185e5b82d6
commit
8729413655
@ -174,8 +174,8 @@ bool parse_query (
|
||||
data = (uint8_t*)GWBUF_DATA(querybuf);
|
||||
len = MYSQL_GET_PACKET_LEN(data)-1; /*< distract 1 for packet type byte */
|
||||
|
||||
|
||||
if (len < 1 || len >= SIZE_MAX - 1 || (query_str = (char *)malloc(len+1)) == NULL)
|
||||
|
||||
if (len < 1 || len >= ~((size_t)0) - 1 || (query_str = (char *)malloc(len+1)) == NULL)
|
||||
{
|
||||
/** Free parsing info data */
|
||||
parsing_info_done(pi);
|
||||
|
Loading…
x
Reference in New Issue
Block a user