Bug 6631 - 6.5: Random crashes due to typo in t_vtx_api.c
Summary: 6.5: Random crashes due to typo in t_vtx_api.c
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: unspecified
Hardware: All All
: highest critical
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 20:34 UTC by aheiner
Modified: 2006-04-17 07:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description aheiner 2006-04-17 20:34:29 UTC
t_vtx_api.c: _tnl_copy_from_current():

"for (i = _TNL_ATTRIB_POS+1 ; i <= _TNL_ATTRIB_MAX ; i++)"

should be:

"for (i = _TNL_ATTRIB_POS+1 ; i < _TNL_ATTRIB_MAX ; i++)"

Otherwise, the out of bound accesses to various arrays in struct tnl_vtx will do
bad things...
Comment 1 Brian Paul 2006-04-18 00:05:32 UTC
This was already fixed in the trunk.  I've put the fix into the 6.4 branch too.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.