Skip to content

Conversation

@icing
Copy link
Contributor

@icing icing commented Oct 8, 2025

header names delivered by nghttp2 are not 0-terminated. Fix code to accomodate for that.

reported-by: Joshua Rogers

header names delivered by nghttp2 are not 0-terminated. Fix
code to accomodate for that.

reported-by: Joshua Rogers
@icing icing added the HTTP/2 label Oct 8, 2025
@github-actions github-actions bot added the HTTP label Oct 8, 2025
@bagder
Copy link
Member

bagder commented Oct 8, 2025

I think they are nul terminated as per the API docs.

@bagder
Copy link
Member

bagder commented Oct 8, 2025

Both name and value are guaranteed to be NULL-terminated

From: https://nghttp2.org/documentation/types.html#c.nghttp2_on_header_callback

@bagder
Copy link
Member

bagder commented Oct 8, 2025

hm, different callback?

@icing
Copy link
Contributor Author

icing commented Oct 8, 2025

Anyway, I think checking the length first is better.

@bagder bagder closed this in 93e91e9 Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants