mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
pinproctest: fix kPRDriverGroupsMax overflow
Compiler warnings showed we were overflowing arrays sized for kPRDriverGroupsMax.
This commit is contained in:
committed by
Gerry Stellenberg
parent
40b0d86be2
commit
cc92bc1235
@@ -131,7 +131,7 @@ void ConfigureDriverGroups(PRHandle proc, bool driverPolarity)
|
|||||||
// in the matrixRowEnableIndex variables.
|
// in the matrixRowEnableIndex variables.
|
||||||
const int mappedDriverGroupRowEnableSelect[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1};
|
const int mappedDriverGroupRowEnableSelect[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||||
|
|
||||||
for (i = 0; i <= kPRDriverGroupsMax; i++)
|
for (i = 0; i < kPRDriverGroupsMax; i++)
|
||||||
{
|
{
|
||||||
PRDriverGroupConfig group;
|
PRDriverGroupConfig group;
|
||||||
//memset(&group, 0x00, sizeof(PRDriverGroupConfig));
|
//memset(&group, 0x00, sizeof(PRDriverGroupConfig));
|
||||||
|
|||||||
Reference in New Issue
Block a user