[Bf-committers] "off by one" error in renderdatabase.c?

Martin Dickopp martin at zero-based.org
Fri Mar 4 01:29:42 CET 2005


Rob Haarsma <phaseIV at zonnet.nl> writes:

> Martin Dickopp wrote:
>
>>When I render my sample scene, R.blovl[0] to R.blovl[4095] are valid
>>pointers, while R.blovl[4096] has the value 0x214b434f, or "OCK!" in
>>ASCII, ...
>
> [...]
> I'm sure it has nothing to do with the issue discussed here, most
> probably the reason why a string gets the value OCK! is a result of
> bad coding.

Hi,

I think that in this case, the "OCK!" is one of the memory guards
("MEMO", "RYBL", "OCK!") that Blender uses for consistency checks of
memory allocations. It most likely indicates that R.blovl[4096] is one
after the last element of R.blovl that memory has been allocated for.

Martin


More information about the Bf-committers mailing list