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

Check __repr__ and __str__ functions for buffer overflows #43

Open
eheien opened this issue Feb 11, 2015 · 0 comments
Open

Check __repr__ and __str__ functions for buffer overflows #43

eheien opened this issue Feb 11, 2015 · 0 comments

Comments

@eheien
Copy link
Contributor

eheien commented Feb 11, 2015

The SWIG wrappers for some of the QuakeLib classes include str and repr functions to allow additional Python functionality. These functions may not be safe in terms of buffer overflow - if formatting is set in a particular way it may be possible for a user to overwrite the 1024 character buffer and cause memory problems. Checks should be put in place to avoid this, or the code rewritten to guarantee there is no possibility of overflow.

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

1 participant