Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1024958

Summary: HotRodClientException.what() returns dangling pointer
Product: [JBoss] JBoss Data Grid 6 Reporter: Radim Vansa <rvansa>
Component: CPP ClientAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Alan Field <afield>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: mgencur
Target Milestone: ER5   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:28:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radim Vansa 2013-10-30 16:11:23 UTC
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.

This may lead to client app crash.

Comment 3 Red Hat Bugzilla 2025-02-10 03:28:52 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.