Skip to content

Comments

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

@mattmundell mattmundell commented Feb 17, 2026

What

Quote the keyword end in the SQL in init_port_range_iterator.

See L2166 and L2176 above where the exact same quoting is already done.

Why

This was causing a segfault when getting trash targets with details.

I think nobody uses this case (trash targets with details), because the quoting has been missing since 2012.

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