-
Notifications
You must be signed in to change notification settings - Fork 146
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
NULL pointer dereference in BIT_reloadDStream() #96
Comments
Is this fixed in dev? I can test this one as well if it is believed to be fixed |
There have been a number of changes in |
@Cyan4973 Sorry for the late reply. I just updated to the latest version of fse (dev branch) and it still crashes. The repro is still
I have a more complex repro that involves FSE_compressU16 if you'd like me to provide it. |
@Cyan4973 Bump! |
I'm sorry, There is ongoing work on FSE, but as part of The situation could be different in some future, |
Alright, thanks @Cyan4973 If I find a fix for this, can I do a PR on this repo? |
Yes |
Crashing line:
430: bitD->bitContainer = MEM_readLEST(bitD->ptr);
in bitstream.h in the function BIT_reloadDStream()
triggered by FSE_decompressU16() with the following code:
This is caused by
size_t const NSize = FSE_readNCount (NCount, &maxSymbolValue, &tableLog, istart, cSrcSize);
returning zero in the following block of FSE_decompressU16():
I don't know if this can happen in the 8 bit version.
The text was updated successfully, but these errors were encountered: