mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0: Fixing bit twiddling in GuidUtil.getVersionedGuidString()
(Closes #9582)
This commit is contained in:
@@ -283,9 +283,9 @@ public class GuidUtil {
|
|||||||
// retVal = retVal.toUpperCase();
|
// retVal = retVal.toUpperCase();
|
||||||
|
|
||||||
guidString += " v";
|
guidString += " v";
|
||||||
versionData[0] = (bytes[17] << 8) + bytes[16];
|
versionData[0] = (Byte.toUnsignedInt(bytes[17]) << 8) | Byte.toUnsignedInt(bytes[16]);
|
||||||
guidString += Integer.toString(versionData[0]) + ".";
|
guidString += Integer.toString(versionData[0]) + ".";
|
||||||
versionData[1] = (bytes[19] << 8) + bytes[18];
|
versionData[1] = (Byte.toUnsignedInt(bytes[19]) << 8) | Byte.toUnsignedInt(bytes[18]);
|
||||||
guidString += Integer.toString(versionData[1]);
|
guidString += Integer.toString(versionData[1]);
|
||||||
|
|
||||||
if (validate && !NewGuid.isOKForGUID(bytes, 0)) {
|
if (validate && !NewGuid.isOKForGUID(bytes, 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user