shevek / lzo-java

Pure Java implementation of the liblzo2 LZO compression algorithm
http://www.anarres.org/
GNU General Public License v3.0
66 stars 19 forks source link

fix IndexOutOfBounds #13

Closed resetius closed 6 years ago

resetius commented 6 years ago

If somene calls 'write' with non-zero offset he'll get IndexOutOfBoundsException. So you should use zero offset here or don't copy input buffer.

resetius commented 6 years ago

@shevek

shevek commented 6 years ago

Thank you, will poke. Curious to know if this existed in the original lzo.

ataraxer commented 6 years ago

Hi! Just wanted to mention that we had the same problem. Any chances this could be merged soon?

shevek commented 6 years ago

Fixed. Thank you.