We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
twin/server/resize.cpp
Lines 127 to 129 in b6e4e4b
if (x > 0 && y > 0 && x < 1000 && y < 1000) { if (!(saveNewCont = NewCont = (tcell *)AllocMem(x * y * sizeof(tcell)))) return false;
The text was updated successfully, but these errors were encountered:
Thanks for spotting this! Yes, that code shoud check for overflows before the multiplication.
Sorry, something went wrong.
No branches or pull requests
twin/server/resize.cpp
Lines 127 to 129 in b6e4e4b
This allocation size is derived from user input and the multiplication might overflow.
Consider adding upper bounds for x and y, e.g.
The text was updated successfully, but these errors were encountered: