-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix rare out-of-bounds write in FLACCL #353
base: master
Are you sure you want to change the base?
Conversation
@ledoge Thanks for your PR. @DarkVoyage, please check. |
I use flac.cl a lot, so if I catch any glitches, I will write. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@agressiv, would you mind testing the build above with e.g. NVIDIA GeForce RTX 4090 using FLACCL? |
Hi! I looked back through #315 and used the same settings, as well as re-encoding their sample file. I am not getting any errors:
Sample file:
However, I used the previous 2.2.6 build (from 2024-06-28) and couldn't reproduce it there either. ¯\_(ツ)_/¯ |
@agressiv The issue doesn't result in the encoder dying, but it does produce a broken file. Adding Also note: when you're testing different versions, to make sure that you're actually running the flac.cl file from the build you're testing and not a different cached one, you should update the timestamp on flac.cl by either changing something in the file and saving it or using something like the *nix |
I have the two different builds of 2.2.6 separated for testing. I still can't reproduce the error on the older june build.
|
If I roll back to 2.25, I get this:
I don't get this with any of my files, just clproblem.flac. |
And yes, if I remove |
@agressiv thanks for the additional information concerning reproducibility of the issue using CUETools releases 2.2.6 and 2.2.5. Concerning CUETools 2.2.5: |
No, it still gives the same unhandled exception. If I copy CUETools.Codecs.FLACCL.dll from either build of 2.2.6, that gets rid of it, even if flac.cl is left alone at 2.2.5. |
Fixes #315
Note that I have no prior experience with OpenCL and haven't tested this patch extensively, so I'm not fully confident that this doesn't break anything.