Join 40 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
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?
to your account
When lpszFile is a 0 byte file, ptr is nullptr.
So, in following [uint8_t ch = *ptr++;] is while() causes error.
How to reproduce the crash?
SciCall_GetRangePointer() should never returns NULL unless not initialized.
If following lines exist in notepad2.ini,
opening 0 size file causes crash.
Fix binary file detection crash for empty file, issue #124.
That's my error on ptr + headerLen which generates the largest pointer.
ptr + headerLen
Great! Thank you! 👍