aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-posix.c
diff options
context:
space:
mode:
authorJussi Kivilinna <[email protected]>2022-03-07 18:54:34 +0000
committerJussi Kivilinna <[email protected]>2022-03-08 18:03:08 +0000
commit49c6e583945263497064109697237701977689c3 (patch)
treee5bf38dd097ae3a54927200bf2a20dd0a34a099c /common/exechelp-posix.c
parentiobuf: add zerocopy optimization for iobuf_write (diff)
downloadgnupg-49c6e583945263497064109697237701977689c3.tar.gz
gnupg-49c6e583945263497064109697237701977689c3.zip
gpg: fix --enarmor with zero length source file
* common/iobuf.c (filter_flush): Remove "src_len == 0" check. * g10/compress-bz2.c (do_compress): Exit early if flush not forced and input length is zero. * g10/compress.c (do_compress): Likewise. -- Remove "(src_len == 0)" check in filter_flush which was introduced to fix compress failure caused by zero length flush from iobuf_close. However this check broke enarmoring file with length of zero. Patch instead fixes zero length flush problem in compress filters. GnuPG-bug-id: T5828 Signed-off-by: Jussi Kivilinna <[email protected]>
Diffstat (limited to 'common/exechelp-posix.c')
0 files changed, 0 insertions, 0 deletions