[Bf-committers] Fluid/Particle bug.

Campbell Barton ideasman42 at gmail.com
Sat Jan 19 16:02:29 CET 2008


Hi, while trying to fix another problem, I came across this one.
https://projects.blender.org/tracker/index.php?func=detail&aid=8117&group_id=9&atid=125

It looks like the allocated memory make_vertexcosnos__mapFunc is
writing is not long enough.
Im not sure how parrticles+fluids are supposed to work so I dont know
what needs adjusting.

This is not a priority for peach, but if anyone knows how it should
work, it would be good to fix.

Heres an error from valgrind
==16293== Invalid read of size 4
==16293==    at 0xAFA9D6: make_vertexcosnos__mapFunc (DerivedMesh.c:2739)
==16293==    by 0xB7BE68: cdDM_foreachMappedVert (cdderivedmesh.c:595)
==16293==    by 0xAFAB9E: mesh_get_mapped_verts_nors (DerivedMesh.c:2770)
==16293==    by 0xB35C5B: build_particle_system (effect.c:1889)
==16293==    by 0x79C07E: do_object_panels (buttons_object.c:2252)
==16293==    by 0x8EBBCF: do_butspace (butspace.c:567)
==16293==    by 0x7686F7: winqreadbutspace (space.c:4302)
==16293==    by 0x7AED53: scrarea_do_winhandle (spacetypes.c:159)
==16293==    by 0x800117: scrarea_dispatch_events (editscreen.c:601)
==16293==    by 0x801B4B: screen_dispatch_events (editscreen.c:1233)
==16293==    by 0x8025D0: screenmain (editscreen.c:1517)
==16293==    by 0x633D2E: main (creator.c:787)


More information about the Bf-committers mailing list