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

[BUG] unsigned len is set to -1 #151

Open
photoszzt opened this issue Jun 6, 2021 · 0 comments
Open

[BUG] unsigned len is set to -1 #151

photoszzt opened this issue Jun 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@photoszzt
Copy link
Collaborator

Describe the bug

ava/common/endpoint_lib.cpp

Lines 259 to 261 in 2bf00b3

size_t len = -1;
void *data = metadata->extract(obj, &len);
assert(len != -1);

Comparing signed and unsigned integers. Here len is unsigned but its set to -1 which causes an overflow.

@photoszzt photoszzt added the bug Something isn't working label Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant