[ 
https://issues.apache.org/jira/browse/MINIFICPP-2795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marton Szasz updated MINIFICPP-2795:
------------------------------------
    Labels: minifi-idea  (was: )

> stable api: Validate callback context pointers in debug builds
> --------------------------------------------------------------
>
>                 Key: MINIFICPP-2795
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2795
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Wish
>            Reporter: Marton Szasz
>            Priority: Minor
>              Labels: minifi-idea
>             Fix For: 1.0.0
>
>
> Before calling MinifiCreateExtension, minifi could save the Extension pointer 
> to a private thread-local variable, then check in MinifiRegisterExtension 
> that the extension pointer received matches the thread-local pointer. This 
> would catch otherwise hard to catch memory errors in debug builds when 
> extensions violate API contracts.
> In addition to MinifiCreateExtension/MinifiRegisterExtension, we could add 
> similar checks to other API functions too, that receive a context pointer.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to