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

is_callsign(): Check size of callsign before indexing into it #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jof
Copy link

@jof jof commented Apr 22, 2024

This was causing some crashes for me when I would see this parsing my logs on startup.

This would see a callsign like ANAAA/2 (where "A" is a letter, and "N" a number), splitting the callsign and checking if each part was a callsign with is_callsign().
So when it'd be called like is_callsign("2"), it'd crash with calling callsign.at(1)

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

1 participant