favreau / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

possible uninitialized variable in btDbvt #463

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=6129

The memory is allocated in insertLeaf / createnode:

Code:
btDbvtNode*    prev=root->parent;
btDbvtNode*    node=createnode(pdbvt,prev,leaf->volume,root->volume,0);

It is reporting that uninitialized memory is being accessed on line 193 here: -

Code:
191               while(prev)
192               {
193                   const btDbvtVolume    pb=prev->volume;
194                   
Merge(prev->childs[0]->volume,prev->childs[1]->volume,prev->volume);
195                   if(NotEqual(pb,prev->volume))
196                   {
197                       prev=prev->parent;
198                   } else break;
199               }

Original issue reported on code.google.com by erwin.coumans on 15 Dec 2010 at 10:10

GoogleCodeExporter commented 9 years ago
'volume' is always initialized. I tried running the Intel Inspector but 
couldn't reproduce any warning there.

Original comment by erwin.coumans on 7 Apr 2011 at 6:37

GoogleCodeExporter commented 9 years ago
I can't reproduce it. If there is a reproduction case let's reopen the issue.

Original comment by erwin.coumans on 29 Feb 2012 at 5:39