Bogus snprintf error checking in query_response_time.cc
The code reads
std::size_t result_length= snprintf(
if(result_length < 0)
/* Assume the result is overflowing */
The return type of snprintf is signed int, the type size_t is unsigned, thus the negative return values are lost and the if-clause is dead code, as warned by the compiler:
The second problem is that the code inside if-clause assumes that the error is that the string was truncated, which is wrong. If the string was truncated, then snprintf returns positive value that is larger than the specified output buffer size. The negative value is returned for other errors.