Home GnuPG
Diffusion GnuPG 0ed2cfcf054e

gpgtar: Fix extracting files with !(size % 512)
0ed2cfcf054eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Changed to use only if-else.

(cherry picked from commit 6cbbb0bec98e1acefc4c7163cc41a507469db920)

  • GnuPG-bug-id: T1926
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
aheineckeAuthored on Mar 17 2015, 10:48 AM
wernerCommitted on Mar 17 2015, 12:03 PM
Parents
rG25e2b27b0027: common: Check option arguments for a valid range
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG0ed2cfcf054e: gpgtar: Fix extracting files with !(size % 512) (authored by Andre Heinecke <aheinecke@intevation.de>).Mar 17 2015, 12:03 PM