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

HotRodClientException.what() returns dangling pointer

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)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: