Re: [sdljava-users] Fix for BufferUtils
Status: Beta
Brought to you by:
ivan_ganza
From: Chris D. <Des...@nt...> - 2005-04-18 23:36:12
|
I've applied the patch to my own private source tree. Thank you, Chris Robert Schuster wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi, >please apply this patch to fix a problem in BufferUtils.readInputStream(). > >The big buffer holding all the data of the smaller ones was not >correctly set into the state where the data could be read afterwards. > >This caused a buffer overflow. Well, just flipping the buffer state >fixes this. > >Along with this small fix I changed the minimum buffer size to 8192 (was >1024) which will cause the creation of fewer intermediate buffer for big >files. > >cu >Robert > > -- |> Dessimat0r (Chris Dennett) /`\ | "We cannot turn back time, but we can _ _|_ _ move it forwards with our own hands." |;|_|;|_|;| \\. . / [www: http://codeknight.net ] \\: . / [e-mail: des...@nt... ] ||: U | /`\ [icq: 21477909 ] ||:. | [msn: des...@nt... ] \,/ ||: U.| ||: | \,/ ||: , | ___.--'~---''--~.__ __.------'''~`-'-, -~--' ~--.__..--~' `~----.__ |