[Patch] buffer to small

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Dec 9 22:00:20 GMT 2007


Leo Savernik schrieb:
> Am Samstag, 8. Dezember 2007 schrieb Christian Ehrlicher:
>> the attached patch is needed because msc8 told me so ;)
>>
>> Or the other way round: it can happen that widthList[to*sizeof(short)]
>> is accessed (I open www.planet3dnow.de to reproduce it, without any
>> plugin, win32). Don't know if this is indented or a bug so I'm posting
>> it here.
> 
> I cannot reproduce on Linux but you may commit if it fixes a bug on a 
> secondary platform. Are we talking about a crash or a compile error/warning?
> 
It's not a crash, but valgrind should tell you that you access invalid
memory. msvc 8 adds guard bytes before and after every variable in debug
mode and told me that widthList[to*sizeof(short)] was accessed. I can
investigate further if you want.


Christian




More information about the kfm-devel mailing list