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

flb_hash_table_get, should have ssize_t for return parameter out_size #8996

Open
jordanauge opened this issue Jun 21, 2024 · 1 comment
Open

Comments

@jordanauge
Copy link

Bug Report

Hello, I noticed some inconsistent data types are used in the hash table code:

flb_hash_table_entry.val_size is a ssize_t that is set to -1 to indicate the user is only storing a pointer, and not actual data in the entry.

However (at least) two function prototypes are using size_t:

Thanks
-- Jordan

@patrick-stephens
Copy link
Contributor

Thanks for the report, can you submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants