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

Fix rare reply mention crash #4055

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Fix rare reply mention crash #4055

merged 2 commits into from
Oct 12, 2022

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Oct 11, 2022

  • Fix potential out-of-range access of at when stripping reply mention if the message contained nothing other than the username
  • Update changelog entry

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Example crash scenario

Content: @pajlada
Tag reply-parent-display-name: pajlada

content.at(1+displayName.length()) would look for the character after the username pajlada, but since there was no more text it would throw an exception or something

@pajlada pajlada enabled auto-merge (squash) October 11, 2022 22:48
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Felanbird
Copy link
Collaborator

still can't auto-merge PRs
image

@pajlada pajlada merged commit 3e020b4 into master Oct 12, 2022
@pajlada pajlada deleted the fix/strip-reply-mention branch October 12, 2022 09:59
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

2 participants