Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cmetrics_decode_fuzz.c: Add missing include #8647

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Update cmetrics_decode_fuzz.c: Add missing include #8647

merged 1 commit into from
Apr 11, 2024

Conversation

maflcko
Copy link
Contributor

@maflcko maflcko commented Mar 29, 2024

Add missing include to fix clang-18 error:

2 warnings and 1 error generated.
/src/fluent-bit/tests/internal/fuzzers/cmetrics_decode_fuzz.c:53:18: error: call to undeclared function 'cmt_decode_msgpack_create'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   53 |         result = cmt_decode_msgpack_create(&cmt, (char *) data, size, &off);
      |                  ^

Testing

I've only tested this via oss-fuzz, after bumping the oss-fuzz clang version to clang-18.

I've used this command in the oss-fuzz project to test:

oss-fuzz# python3 infra/helper.py build_fuzzers --sanitizer address    --engine libfuzzer fluent-bit

Docs, Backport, or other testing should not be needed, I think.


Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

Signed-off-by: maflcko <6399679+maflcko@users.noreply.github.com>
@edsiper
Copy link
Member

edsiper commented Apr 11, 2024

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-required ok-package-test Run PR packaging tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants