Skip to content

http tests: check socket/accept returns in http_max_headers - #132

Merged
benjarvis merged 1 commit into
mainfrom
http-max-headers-scan-build
Aug 13, 2026
Merged

http tests: check socket/accept returns in http_max_headers#132
benjarvis merged 1 commit into
mainfrom
http-max-headers-scan-build

Conversation

@benjarvis

Copy link
Copy Markdown
Member

chimera's Analyze (scan-build) jobs fail on this test since the libevpl bump in chimera-nas/chimera#1513 pulled it in: the unix.StdCLibraryFunctions checker flags the paths where socket() returns -1 and the fd flows unchecked into connect() (line 324) / bind() (line 387). This repo's scan-build job doesn't enable that checker, which is why #130 merged green here.

Check the socket() returns in both spots, and the accept() return as well — running clang's analyzer with that checker locally reports three findings (the third being read(cfd) on the accept() == -1 path), so fixing only the two CI reported would just uncover the third on the next chimera run. Three findings before, zero after; all 8 http tests still pass.

scan-build (unix.StdCLibraryFunctions) flags the paths where socket()
returns -1 and the fd flows into connect()/bind(), and accept() -1
into read().  libevpl's own scan-build job doesn't enable that checker,
but chimera's does, so the bump that pulled this test in broke its
Analyze jobs.
@benjarvis
benjarvis merged commit caf18ee into main Aug 13, 2026
34 checks passed
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