Skip to content

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

Open
jof wants to merge 1 commit into
jtdx-project:masterfrom
jof:jof/is_callsign_check
Open

is_callsign(): Check size of callsign before indexing into it#29
jof wants to merge 1 commit into
jtdx-project:masterfrom
jof:jof/is_callsign_check

Conversation

@jof
Copy link
Copy Markdown

@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.

1 participant