Detect (instead of crash) FREE_IT UDFs that return pointer not allocated by ib_util_malloc [CORE1937] #2374
Labels
affect-version: 1.0.3
affect-version: 1.5.4
affect-version: 1.5.5
affect-version: 2.0.0
affect-version: 2.0.1
affect-version: 2.0.2
affect-version: 2.0.3
affect-version: 2.0.4
affect-version: 2.1 Alpha 1
affect-version: 2.1 Beta 1
affect-version: 2.1 Beta 2
affect-version: 2.1 RC1
affect-version: 2.1 RC2
affect-version: 2.1.0
affect-version: 2.5 Initial
component: engine
component: udf
fix-version: 2.5 Beta 1
priority: major
type: improvement
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
The text was updated successfully, but these errors were encountered: