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

Detect (instead of crash) FREE_IT UDFs that return pointer not allocated by ib_util_malloc [CORE1937] #2374

Closed
firebird-automations opened this issue Jun 14, 2008 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

Attachments:
libtest.tar

When a UDF declared as FREE_IT returns a pointer not allocated by the same runtime of the server, a crash occurs when the server calls free(pointer).

Solution is creation of ib_util_free that verifies if the passed pointer was allocated by ib_util_malloc. When it wasn't, an exception is thrown and the pointer is not freed.

Commits: af1d955

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Install directory detection test.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Attachment: libtest.tar [ 10970 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@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