Skip to content

command/StickerCommands: validate find arguments - #2574

Open
acts-1631 wants to merge 1 commit into
MusicPlayerDaemon:v0.24.xfrom
acts-1631:fix/sticker-find-arguments
Open

command/StickerCommands: validate find arguments#2574
acts-1631 wants to merge 1 commit into
MusicPlayerDaemon:v0.24.xfrom
acts-1631:fix/sticker-find-arguments

Conversation

@acts-1631

Copy link
Copy Markdown
Contributor

After optional sort and window clauses are removed, sticker find expects either four arguments or an operator/value pair for a total of six. With five arguments, the handler reads a nonexistent sixth element and may crash the daemon.

Reject all other argument counts before accessing the optional value.

After removing optional sort and window clauses, sticker find expects
either four arguments or an operator/value pair for a total of six.
With five arguments, the current code reads a nonexistent sixth element
and may crash the daemon.

Reject all other argument counts before accessing the optional value.
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