From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id E184E3858D28; Mon, 7 Aug 2023 19:16:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E184E3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1691435802; bh=3vvpC4qZrU4ILDbSksHFRlchrPJ7DMS2BkQYOCzdCPM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=CZbSnXgEX2P8DUMoPGnOzZUne1SYmjP7cBheQZmVvP0FW+WnXbAxknzAtz/qlLXfi 4UqF7GA8E+mZ8RQMy/gMQ77Br0SO58kdhjyHeT9zU+vLsNARw/c06ULF6CNRH48KGT VE5N4lTr7nZlUa8/1U+2KrirgXjh8sBj9oZ+rOfI= Received: by calimero.vinschen.de (Postfix, from userid 500) id 35BA6A80C13; Mon, 7 Aug 2023 21:16:41 +0200 (CEST) Date: Mon, 7 Aug 2023 21:16:41 +0200 From: Corinna Vinschen To: Christian Franke Cc: cygwin-apps@cygwin.com Subject: Re: [PATCH rebase 2/2] peflags: Add -k, --checksum option Message-ID: Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: Christian Franke , cygwin-apps@cygwin.com References: <59213442-6904-0854-980c-110e66192a25@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <59213442-6904-0854-980c-110e66192a25@t-online.de> List-Id: On Aug 7 16:26, Christian Franke via Cygwin-apps wrote: > This patch is on top of the --timestamp patch. Could not be applied to > current HEAD without conflicts. > > -- > Regards, > Christian > > From 9ecaf86bff5d229bf5b2a1ba1ff4674526fc1b68 Mon Sep 17 00:00:00 2001 > From: Christian Franke > Date: Mon, 7 Aug 2023 15:52:14 +0200 > Subject: [PATCH] peflags: Add -k, --checksum option > > This allows to fix the file checksum in the PE header. > An invalid checksum may break reproducible builds or may > increase the risk of false positive malware detections. > The checksum calculation is done by a new self-contained module > 'pechecksum.c' which could also be built as a stand-alone tool > or later added to rebase. > > Signed-off-by: Christian Franke > --- > Makefile.in | 6 +- > pechecksum.c | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++ > pechecksum.h | 25 +++++++ > peflags.c | 129 ++++++++++++++++++++++++++++++++-- > 4 files changed, 347 insertions(+), 8 deletions(-) > create mode 100644 pechecksum.c > create mode 100644 pechecksum.h Pushed. Thanks, Corinna