You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/08 16:55:10 UTC

[GitHub] [pulsar] Radrik5 opened a new issue #14175: C++: MessageId::operator< sometimes returns wrong result

Radrik5 opened a new issue #14175:
URL: https://github.com/apache/pulsar/issues/14175


   **Describe the bug**
   MessageId::operator< has no return value if message ids are equal. It actually returns garbage from the stack so if garbage happens to be 0, operator< returns wrong value.
   
   https://github.com/apache/pulsar/blob/25ccf45fcaa71d97cae26244a6b7dfca75a4a089/pulsar-client-cpp/lib/MessageId.cc#L118


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] Radrik5 closed issue #14175: C++: MessageId::operator< sometimes returns wrong result

Posted by GitBox <gi...@apache.org>.
Radrik5 closed issue #14175:
URL: https://github.com/apache/pulsar/issues/14175


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] Radrik5 commented on issue #14175: C++: MessageId::operator< sometimes returns wrong result

Posted by GitBox <gi...@apache.org>.
Radrik5 commented on issue #14175:
URL: https://github.com/apache/pulsar/issues/14175#issuecomment-1032844826


   False alarm, return value is after last else: https://github.com/apache/pulsar/blob/25ccf45fcaa71d97cae26244a6b7dfca75a4a089/pulsar-client-cpp/lib/MessageId.cc#L115


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org