Skip to content

Commit

Permalink
Merge branch 'pr-2330'
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium-cfx committed Jan 8, 2024
2 parents 0b61c93 + 59e0e38 commit a654bcc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -215,7 +215,7 @@ static std::optional<TicketData> VerifyTicketEx(const std::string& ticket)
return {};
}

uint32_t length = *(uint32_t*)&ticketData[20 + 4 + 128];
size_t length = static_cast<size_t>(*(uint32_t*)&ticketData[20 + 4 + 128]);

// validate full length
if (ticketData.size() < 20 + 4 + 128 + 4 + length)
Expand Down

0 comments on commit a654bcc

Please sign in to comment.