Skip to content

Comments

Fix: add const to tmp in parse_port_of_addr#1052

Merged
greenbonebot merged 1 commit intomainfrom
parse-port-const
Feb 20, 2026
Merged

Fix: add const to tmp in parse_port_of_addr#1052
greenbonebot merged 1 commit intomainfrom
parse-port-const

Conversation

@mattmundell
Copy link
Contributor

What

Add const to tmp in port parsing in kb.c

Why

This is required because addr is const and addr is being assigned to tmp via strrchr.

As a result parse_port_of_addr also needs to return a const, and the test vars need to be const.

References

Closes #1051.

@mattmundell mattmundell requested review from a team as code owners February 20, 2026 10:53
@greenbonebot greenbonebot enabled auto-merge (rebase) February 20, 2026 10:54
@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 9fd068d.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

This is required because addr is const and addr is being assigned to tmp via
strrchr.

As a result parse_port_of_addr also needs to return a const, and the test vars
need to be const.
@greenbonebot greenbonebot merged commit c06af8f into main Feb 20, 2026
23 checks passed
@greenbonebot greenbonebot deleted the parse-port-const branch February 20, 2026 12:48
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.

22.35.7: build failure with glibc 2.43

3 participants