doterax / guetzli-cuda-opencl

Perceptual JPEG encoder, optimized with CUDA&OpenCL, full JPEG format support.
Apache License 2.0
34 stars 4 forks source link

occasional Buffer overflow #14

Open crass00 opened 8 months ago

crass00 commented 8 months ago

Sometimes is get the below error

Assertion failed: coeff % quant == 0, file D:\Work\OpenSource\guetzli-cuda-opencl\guetzli\output_image.cc, line 629

In the below change there is a buffer overflow fix (mixed in with some other stuff)

https://github.com/winsoft666/guetzli-cuda-opencl/commit/6b5a607a91150c6fe7310f5518012b8a78ef3f04#diff-7ae0466468c37e899127f650d1fc3e774ad635659403f406fabd10715f6d729e

Any chance its a potentional fix and fix so any chance of merging it and compiling a new verison (I've tried but I've never been able to sucessfully compile a cuda-opelcl build of this :( )

doterax commented 5 months ago

Sorry, I was busy. This link is not working.

doterax commented 4 months ago

@crass00 provided link still not working, you can add your solution below and I will analyze it.

crass00 commented 4 months ago

sorry i didn't have a copy of the code before winsoft666 took down the repo :(