Issue Details (XML | Word | Printable)

Key: CORE-1455
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Dmitry Yemanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Crash in fbclient after unsuccessful user management API call

Created: 12/Sep/07 09:58 AM   Updated: 26/Dec/07 11:19 AM
Component/s: API / Client Library
Affects Version/s: 2.0.0, 2.0.1, 2.0.2
Fix Version/s: 2.1 Beta 2, 2.0.4

Time Tracking:
Not Specified


 Description  « Hide
Any unsuccessful user API call (e.g. isc_add_user() called for an already existing user name) returns invalid status vector with string arguments pointing to the deallocated memory. If the client application then performs any of the error handling API calls (isc_interpret() etc), SEGV happens.

Reported by Guido Klapperich.

I suppose the bug is located in alt.cpp::executeSecurityCommand() where the detachRemoteServiceManager() call discards the status strings.

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 18/Oct/07 07:35 AM
Added dedicated circular buffer to keep strings permanently.