Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-56

HotRodClientException.what() returns dangling pointer

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Final
    • None
    • None
    • None

      The what() method returns c_str() from string allocated on stack (via stringstream). By the time what() returns, the stack is already unwinded.

      You have to initialize some string as the exception's field and only return the c_str() from this field.

              ttarrant@redhat.com Tristan Tarrant
              rvansa1@redhat.com Radim Vansa (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: