587_0001-gpgtar-Fix-extracting-files-with-size-512.patch
AbandonedPublic

Authored by aheinecke on Mar 17 2015, 11:10 AM.

Details

Reviewers
None
Summary

From 1a173715207e367044752804dd85576d2abb78c6 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Tue, 17 Mar 2015 10:48:09 +0100
Subject: [PATCH] gpgtar: Fix extracting files with size % 512

  • tools/gpgtar-extract.c (extract_regular): Handle size multiples of RECORDSIZE.
  • If a hdr->size was a multiple of 512 the last record would not have been written and the files corrupted accordingly.

    GnuPG-bug-id: 1926

Signed-off-by: Andre Heinecke <aheinecke@intevation.de>

tools/gpgtar-extract.c | 5 +++++
1 file changed, 5 insertions(+)

1.9.1

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped