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

Squatter: Don't crash on assert() in lib/cyrusdb_twoskip.c:fetch()->assert(keylen) #3892

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

mosvald
Copy link
Contributor

@mosvald mosvald commented Feb 2, 2022

This checks return value from mboxname_from_external() and if it is NULL
or empty string, just inform about the invalid mailbox name instead of
crashing.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1911689

…ssert(keylen)

This checks return value from mboxname_from_external() and if it is NULL
or empty string, just inform about the invalid mailbox name instead of
crashing.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1911689
Signed-off-by: Martin Osvald <mosvald@redhat.com>
Copy link
Member

@brong brong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - yes, that's reasonable. Maybe twoskip fetch should just return NOTFOUND rather than aborting on fetch("") - though running mboxtree on that will do EVERYTHING, so this patch is good anyway.

@brong brong merged commit 924383a into cyrusimap:master Apr 24, 2023
@elliefm elliefm added backport-to-3.8 for PRs that are to be backported to 3.8 and removed backport-to-3.8 for PRs that are to be backported to 3.8 labels Apr 25, 2023
@elliefm elliefm added backport-to-3.6 for PRs that are to be backported to 3.6 and removed backport-to-3.6 for PRs that are to be backported to 3.6 labels May 23, 2023
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.

None yet

3 participants