Bug#682812: calloc (nmemb=0, size=12)
On Mit, 2012-07-25 at 23:01 +0200, Johann Klammer wrote:
> Package: mesa
> Version: 7.11.2-1
>
> Hello,
>
> I tried to replace the memory allocator for a program
> linked against mesa. With the libc allocators the app shows some
> textured and shaded triangles, but with the custom allocators, it's all
> black triangles. Sorry, I cannot post the program source as it is rather
> large, but will try to come up with a minimal test if this is necessary.
>
> The custom allocator returns NULL for zero-sized requests.
> The problem goes away if I change the allocator to return some memory.
>
> Symptoms:
> all black triangles.
>
> likely cause:
> 'calloc (nmemb=0, size=12)' in
> st_translate_mesa_program at state_tracker/st_mesa_to_tgsi.c:1181
Does the problem still occur with libgl1-mesa-dri version 8.x?
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
Reply to: