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

Integer Overflow in raviH_new_integer_array #208

Open
XmiliaH opened this issue Feb 13, 2021 · 1 comment
Open

Integer Overflow in raviH_new_integer_array #208

XmiliaH opened this issue Feb 13, 2021 · 1 comment

Comments

@XmiliaH
Copy link
Contributor

XmiliaH commented Feb 13, 2021

There is an integer overflow in raviH_new_integer_array at

ravi_resize_array(L, t, len + 1, 0);

When the requested array size is 0xFFFFFFFF the array being allocated is of size 0 but the initialization will segfault as can be seen from running table.intarray(0xFFFFFFFF).

The same holds for the raviH_new_number_array function.

@dibyendumajumdar
Copy link
Owner

dibyendumajumdar commented Feb 13, 2021

Thank you for the report

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