Skip to content

Commit

Permalink
Fix a security issue for validator.c (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony979 authored May 7, 2021
1 parent 6d9bdef commit cfcf1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azureeyemodule/app/device/validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static void LIBUSB_CALL callbackUSBTransferComplete(struct libusb_transfer *xfr)
// Transfer the data from service to SoM
else if (memcmp(xfr->buffer, ReceiveTLSDataFromService, 2) == 0)
{
int expectedLen;
unsigned int expectedLen;
memcpy(&expectedLen, xfr->buffer + 2, 4);
#ifdef AUTH_LOG
fprintf(stdout, "Tried to get TLS data from service: %d\n", expectedLen);
Expand Down

0 comments on commit cfcf1d3

Please sign in to comment.