In file /edk2-test/uefi-sct/EMS/Src/EmsRpc/EmsRpcEth.c, there are line like:

GetSystemTime ( & Time);

FillCnlLlFlag (Packet, LastSendSeq, LINK_OPERATION_CLEANUP, 0 , FALSE );
TimeStamp += ((UINT64) Time. wYear * 12 * 31 * 24 * 60 * 60 );
TimeStamp += ((UINT64) Time. wMonth * 31 * 24 * 60 * 60 );
TimeStamp += ((UINT64) Time. wDay * 24 * 60 * 60 );
TimeStamp += ((UINT64) Time. wHour * 60 * 60 );
TimeStamp += ((UINT64) Time. wMinute * 60 );
TimeStamp += Time. wSecond ;
TimeStamp <<= 32 ;
TimeStamp += Time. wMilliseconds ;

The value of `2024*12*31*24*60*60` is 65052979200, which is out of the range of 
32bit.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120578): https://edk2.groups.io/g/devel/message/120578
Mute This Topic: https://groups.io/mt/108622514/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to