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

pruntime: Fix trie node corruption #1246

Merged
merged 1 commit into from
Apr 13, 2023
Merged

pruntime: Fix trie node corruption #1246

merged 1 commit into from
Apr 13, 2023

Conversation

kvinwang
Copy link
Collaborator

@kvinwang kvinwang commented Apr 13, 2023

The trie framework will pass an empty value when the rc is negative. So, the value would be mis-cleared when decreasing the rc.
This PR fixes it by setting the value only when rc > 0.

@kvinwang kvinwang marked this pull request as ready for review April 13, 2023 13:36
@kvinwang kvinwang requested a review from h4x3rotab April 13, 2023 13:36
@jasl jasl enabled auto-merge April 13, 2023 13:54
@jasl jasl merged commit 9e137ec into master Apr 13, 2023
@jasl jasl deleted the fix-trie branch April 13, 2023 14:33
@h4x3rotab
Copy link
Contributor

Very interesting finding! Let's talk about it deeper offline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants