This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB usbdmsc.c usbdmsc.h

If you look at line 276 of usbdmsc.h you will see

unsigned char pucVersion[4];

Now if you look at line 1486 of usbdmsc.c you will see

for(iIdx = 0; iIdx < 16; iIdx++)

{

g_pucCommand[iIdx + 32] = psDevice->pucVersion[iIdx];   //Clearly we are going past the array bound of pucVersion. NOT GOOD!!!

}

  • Brad,

    Good catch. After looking at the two files the 'version' for loop should only iterate through 4 times (not 16) since the version information is only 4 bytes as specified in the header file. I'll contact the necessary people and get this straightened out for the next StarterWare revision.

    Thanks,

    Jason Reeder