hverbeet at gmail.com
Mon Mar 12 11:14:00 CDT 2007
On 12/03/07, Erich Hoover <ehoover at mines.edu> wrote:
> I think that the allocated memory should be the size of the resource
> multiplied by 4 (instead of adding 4).
What makes you think that?
IIRC the +4 there is for dodgy applications reading just past the end
of the surface, but that line could do with a comment in either case.
> I've dug around a bit to see if This->resource.size was just allocated
> incorrectly but that does not appear the case. So, if someone could confirm
> or deny that this is a typo problem then I'd really appreciate it.
Could you look into my comment in bugzilla? I'll probably write a test
for that either way, but it's probably quite a bit faster for you to
check if what I posted there makes any difference.
More information about the wine-devel