From 15358c6cdd470054e076036483617f086446722a Mon Sep 17 00:00:00 2001 From: Kai Bolay Date: Fri, 22 Nov 2024 08:31:55 -0500 Subject: [PATCH 1/2] Output crc32 in hex --- .../src/main/java/ghidra/file/formats/ios/png/PNGChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java b/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java index aff9e0eb5d..9954535ef7 100644 --- a/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java +++ b/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java @@ -127,7 +127,7 @@ public class PNGChunk implements StructConverter { buff.append("Length: 0x" + Integer.toHexString(length) + "\n"); buff.append("Chunk ID: " + getIDString() + "\n"); buff.append("Chunk Data:" + new String(data) + "\n"); - buff.append("CRC32: 0x" + crc32 + "\n"); + buff.append("CRC32: 0x" + Integer.toHexString(crc32) + "\n"); return buff.toString(); } From 3b4d4f9ed0d95527fd283dbb37c19c3920bb5d4b Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Fri, 22 Nov 2024 13:03:28 -0500 Subject: [PATCH 2/2] GP-0: Certify --- .../src/main/java/ghidra/file/formats/ios/png/PNGChunk.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java b/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java index 9954535ef7..8c8fb0dfba 100644 --- a/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java +++ b/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/png/PNGChunk.java @@ -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.