1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 10:17:46 +00:00

Potential Truncation - value over signed char

In PacketHandlers.cpp ~line453 - we are trying to insert a hex value
(128) x80 and will cause an underflow to -128.  Suggestion is to move to
unsigned char to capture the intended value.
This commit is contained in:
ShelbyZ 2017-10-17 17:14:11 -07:00
parent 7f48f567a3
commit 238a1c17a6

View file

@ -81,7 +81,7 @@ struct FFXIVIpcPlayTime : FFXIVIpcBasePacket<Playtime>
*/
struct PlayerEntry {
uint64_t contentId;
char bytes[12];
unsigned char bytes[12];
uint16_t zoneId;
uint16_t zoneId1;
char bytes1[8];