mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-0: Fixing deprecated calls to Conv
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -32,7 +32,6 @@ import ghidra.app.util.bin.format.pe.PortableExecutable;
|
||||
import ghidra.app.util.bin.format.pe.PortableExecutable.SectionLayout;
|
||||
import ghidra.app.util.bin.format.pe.RichHeader;
|
||||
import ghidra.app.util.bin.format.pe.rich.*;
|
||||
import ghidra.util.Conv;
|
||||
|
||||
public class PortableExecutableRichPrintScript extends GhidraScript {
|
||||
|
||||
@@ -170,7 +169,7 @@ public class PortableExecutableRichPrintScript extends GhidraScript {
|
||||
data[0x3d] = 0;
|
||||
|
||||
for (int i = 0; i < DOSHeader.SIZEOF_DOS_HEADER + programLength; i++) {
|
||||
int b = data[i] & Conv.BYTE_MASK;
|
||||
int b = Byte.toUnsignedInt(data[i]);
|
||||
checksum += rol32(b, (i & 0x1f));
|
||||
}
|
||||
return checksum;
|
||||
|
||||
Reference in New Issue
Block a user