Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Sep 20, 2025

  • add comment in the header that the argument 'size' is always 1, as guaranteed by the libcurl API

  • then fix the call to fwrite() to avoid using "size, etag_length" which would be wrong if size was something else than 1, and use a fixed number there instead.

Reported in Joshua's sarif data

- add comment in the header that the argument 'size' is always 1,
  as guaranteed by the libcurl API

- then fix the call to fwrite() to avoid using "size, etag_length" which
  would be wrong if size was something else than 1, and use a fixed
  number there instead.

Reported in Joshua's sarif data
@bagder bagder marked this pull request as ready for review September 20, 2025 09:34
@bagder bagder closed this in 0209e08 Sep 20, 2025
@bagder bagder deleted the bagder/tool-header-cb branch September 20, 2025 10:06
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.

1 participant