Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in fbclient after unsuccessful user management API call [CORE1455] #1873

Closed
firebird-automations opened this issue Sep 12, 2007 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dyemanov

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.

Commits: 5b99b29 0c93cfe d3c93a5

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Added dedicated circular buffer to keep strings permanently.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.1 RC1 [ 10201 ]

Fix Version: 2.0.4 [ 10211 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Fix Version: 2.1 Beta 2 [ 10190 ]

Fix Version: 2.1 RC1 [ 10201 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13034 ] => Firebird [ 13935 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment