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-issue-importer opened this issue Jun 14, 2008 · 5 comments

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 14, 2008

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 11, 2008

Commented by: @asfernandes

Install directory detection test.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 11, 2008

Modified by: @asfernandes

Attachment: libtest.tar [ 10970 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 8, 2009

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

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