Skip to content

Fix: quote "end" in port range SQL#2774

Open
mattmundell wants to merge 1 commit intomainfrom
port-range-segv
Open

Fix: quote "end" in port range SQL#2774
mattmundell wants to merge 1 commit intomainfrom
port-range-segv

Conversation

@mattmundell
Copy link
Contributor

What

Quote the keyword end in the SQL in init_port_range_iterator.

Why

This was causing a segfault when getting trash targets with details. I think nobody uses this, because it's been like this since 2012. The other cases already do the quoting.

Testing

o m m '<get_targets details="1" trash="1"/>'

Before this would have an empty response, with a segv showing in the logs.

This was causing a segfault when getting trash targets with details. I think
nobody uses this, because it's been like this since 2012. The other cases
already do the quoting.
@mattmundell mattmundell requested review from a team as code owners February 17, 2026 13:42
@greenbonebot greenbonebot enabled auto-merge (rebase) February 17, 2026 13:42
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

Comments