We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In file File https://github.com/microsoft/RIoT/blob/master/Reference/RIoT/RIoTCrypt/derenc.c, line 291:
negative = Val[numLeadingZeros] >= 128;
This function is called by DerAddInteger like this:
long valx = htonl(Val); // TODO: REMOVE USAGE int res = DERAddIntegerFromArray(Context, (uint8_t*)&valx, 4);
suppose long is 32 bytes and the value of Val is 0, then numLeadingzeros = 4, so Val[4] is read, but this is the 5th byte, so out of bounds
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In file File https://github.com/microsoft/RIoT/blob/master/Reference/RIoT/RIoTCrypt/derenc.c, line 291:
negative = Val[numLeadingZeros] >= 128;
This function is called by DerAddInteger like this:
long valx = htonl(Val); // TODO: REMOVE USAGE
int res = DERAddIntegerFromArray(Context, (uint8_t*)&valx, 4);
suppose long is 32 bytes and the value of Val is 0, then numLeadingzeros = 4,
so Val[4] is read, but this is the 5th byte, so out of bounds
The text was updated successfully, but these errors were encountered: