You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::string errstr() const {
/* message_errstr() is only available for the consumer. */
if (rk_type_ == RD_KAFKA_CONSUMER)
return std::string(rd_kafka_message_errstr(rkmessage_));
How to reproduce
call errstr from a consumer on message with no error
Bug in MessageImpl::errstr() can attempt to construct std::string with NULL which is defined as undefined behavior by the standard.
Description
recently introduced code in MessageImpl::errstr() can try to construct a std::string with a null ptr
How to reproduce
call errstr from a consumer on message with no error
IMPORTANT: Always try to reproduce the issue on the latest released version (see https://github.com/edenhill/librdkafka/releases), if it can't be reproduced on the latest version the issue has been fixed.
Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
v1.5.2
<REPLACE with e.g., 0.10.2.3>
<REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
Linux x86-64
debug=..
as necessary) from librdkafkaThe text was updated successfully, but these errors were encountered: