-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BugFix] Fix UAF in shared UDF #54592
Conversation
In shared UDF the function context object is cached in memory, this can lead to a UAF when accessing the function context, resulting in undefined behavior. In this commit, we remove the Function Context object of BatchCallStub. Use the StatusOr interface instead of the control flow. Signed-off-by: stdpain <[email protected]>
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]✅ pass : 11 / 11 (100.00%) file detail
|
@Mergifyio backport branch-3.4 |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
Signed-off-by: stdpain <[email protected]> (cherry picked from commit a29b2b6)
Signed-off-by: stdpain <[email protected]> (cherry picked from commit a29b2b6)
Signed-off-by: stdpain <[email protected]> (cherry picked from commit a29b2b6)
Signed-off-by: stdpain <[email protected]> (cherry picked from commit a29b2b6) # Conflicts: # be/src/exprs/java_function_call_expr.cpp # be/src/exprs/java_function_call_expr.h
https://github.com/Mergifyio backport branch-3.3.8 |
✅ Backports have been created
|
Signed-off-by: stdpain <[email protected]> (cherry picked from commit a29b2b6)
Co-authored-by: stdpain <[email protected]>
Co-authored-by: stdpain <[email protected]>
Co-authored-by: stdpain <[email protected]> (cherry picked from commit 20ce63a)
…54613) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: stdpain <[email protected]>
Co-authored-by: stdpain <[email protected]>
https://github.com/Mergifyio backport branch-3.4.0-rc01 |
✅ Backports have been created
|
Signed-off-by: stdpain <[email protected]> (cherry picked from commit a29b2b6)
Co-authored-by: stdpain <[email protected]>
Why I'm doing:
In shared UDF the function context object is cached in memory, this can lead to a UAF when accessing the function context, resulting in undefined behavior.
What I'm doing:
In this commit, we remove the Function Context object of BatchCallStub. Use the StatusOr interface instead of the control flow.
close https://github.com/StarRocks/StarRocksTest/issues/9031
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: