Page MenuHome GnuPG
Feed Advanced Search

May 7 2021

gniibe reopened T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as "Open".

The commit rGbb8e3996e44f: scd: Fix problem with reader list becoming empty. removed READER_TABLE_LOCK holding between apdu_dev_list_start and apdu_dev_list_finish, that opens possible stale resource access for CCID driver: reader_table[slot].ccid.handle

May 7 2021, 6:34 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added projects to T5425: scdaemon.conf reader-port setting broken in 2.3: scd, Restricted Project, gnupg.
May 7 2021, 6:05 AM · gnupg, Restricted Project, scd, Bug Report
gniibe claimed T5425: scdaemon.conf reader-port setting broken in 2.3.

Thank you for your report.

May 7 2021, 6:04 AM · gnupg, Restricted Project, scd, Bug Report

May 6 2021

dain created T5425: scdaemon.conf reader-port setting broken in 2.3.
May 6 2021, 8:57 PM · gnupg, Restricted Project, scd, Bug Report
ikloecker added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

Well, all I can say is that
./run-genkey --loopback "elektra testkey (gen-gpg-testkey)"
creates a key without any problems and without asking for a passphrase. Even, if I add the GPGME_CREATE_NOEXPIRE flag to the call of gpgme_op_createkey. At least, from a terminal.

May 6 2021, 9:19 AM · gpgme, Bug Report
werner added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

That would required that we also add an option --enable-ccid-driver - better tell the macOS folks to put diable-ccid-driver into /etc/gnupg/scdaemon.conf

May 6 2021, 9:06 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Or... we could add --disable-ccid-driver as default for macOS.

May 6 2021, 3:56 AM · MacOS, yubikey, Bug Report
gniibe claimed T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
May 6 2021, 3:55 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

If it is built with LIBUSB enabled, please try adding the following to your scdaemon.conf:

disable-ccid
May 6 2021, 3:54 AM · MacOS, yubikey, Bug Report

May 5 2021

pnirschl added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

Thank you for your response! I tried out all variants of gpgme_pinentry_mode_t and implemented a passphrase callback (using gpgme_set_passphrase_cb as suggested). It turns out that the callback is not invoked at all. However, if I switch back to gnupg 2.2.27, the callback is being invoked and the key is being generated (using the passphrase specified by the callback, as expected).

May 5 2021, 9:17 PM · gpgme, Bug Report
ikloecker added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

The problem might be that gpg tries to ask for a passphrase which fails on the CI. Try setting a passphrase callback and setting the pinentry mode to loopback. See https://dev.gnupg.org/source/gpgme/browse/master/tests/run-genkey.c$435.

May 5 2021, 10:01 AM · gpgme, Bug Report
pnirschl created T5422: gnupg 2.3.1 breaks gpgme_op_createkey().
May 5 2021, 8:33 AM · gpgme, Bug Report
werner closed T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as Resolved.

Thanks for testing. I hope to get 2.3.2 out in two weeks.

May 5 2021, 8:13 AM · yubikey, scd, gnupg (gpg23), Bug Report

May 4 2021

colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

After upgrade:

May 4 2021, 8:08 PM · yubikey, scd, gnupg (gpg23), Bug Report

May 3 2021

werner closed T1333: GPGSM rejects OCSP responder cert without keyUsage as Resolved.
May 3 2021, 3:52 PM · Bug Report, gnupg
Jakuje added a comment to T1333: GPGSM rejects OCSP responder cert without keyUsage.

Thank you for taking time to look into that. There are couple of issues in the CAcert bug tracker talking about the same issue but if, (I see right), the certs still miss the usage flags:

May 3 2021, 3:07 PM · Bug Report, gnupg
werner added a comment to T1333: GPGSM rejects OCSP responder cert without keyUsage.

RFC-5280 states in 4.2.1.3 for Key Usage:

May 3 2021, 2:30 PM · Bug Report, gnupg
werner added projects to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe): gnupg (gpg23), scd, yubikey.

Meanwhile we did some more tests on Windows and so you many want to try our betas at

May 3 2021, 2:00 PM · yubikey, scd, gnupg (gpg23), Bug Report
hansoli added a comment to T4149: Kleopatra OpenPGP and GpgSM self test fail after installation on Windows 7.

I had a similar issue in Windows 10 too. In my case, the issue occurs only when my home path has non-ASCII characters. After I changed home path it works well.

May 3 2021, 12:45 PM · kleopatra, Bug Report, gpg4win
Jakuje updated subscribers of T1333: GPGSM rejects OCSP responder cert without keyUsage.

Any chance looking into this @werner?

May 3 2021, 10:29 AM · Bug Report, gnupg

Apr 30 2021

colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

To note, this is in contrast to my experience with gpg-2.2 (provided by gpg4win). With gpg-2.2, I was reliably using my Yubikey for a variety of things, and it handled hotplugging perfectly, as one would expect.

Apr 30 2021, 10:46 PM · yubikey, scd, gnupg (gpg23), Bug Report
colemickens created T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).
Apr 30 2021, 10:44 PM · yubikey, scd, gnupg (gpg23), Bug Report
KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Also let me know if there are any daemons I have to kill/restart when switching between GnuPG versions by changing the $PATH. Whenever I have problems with my YubiKey, I run gpgconf --kill gpg-agent, which I also executed when I switched from version 2.2.27 back to 2.3.1 but I have no idea whether this is required or sufficient.

Apr 30 2021, 11:03 AM · MacOS, yubikey, Bug Report
KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
$ gpg --version
gpg (GnuPG) 2.3.1
libgcrypt 1.9.3
$ gpg --debug ipc --card-status
gpg: reading options from '/Users/user/.gnupg/gpg.conf'
gpg: reading options from '[cmdline]'
gpg: enabled debug flags: ipc
gpg: DBG: chan_3 <- OK Pleased to meet you, process 15218
gpg: DBG: connection to the gpg-agent established
gpg: DBG: chan_3 -> RESET
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION ttyname=/dev/ttys007
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION ttytype=xterm-256color
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION lc-ctype=en_US.UTF-8
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION lc-messages=en_US.UTF-8
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.3.1
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION allow-pinentry-notify
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> SCD GETINFO version
gpg: DBG: chan_3 <- D 2.3.1
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> SCD SERIALNO
gpg: DBG: chan_3 <- ERR 100696144 Operation not supported by device <SCD>
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device
gpg: secmem usage: 0/32768 bytes in 0 blocks
Apr 30 2021, 10:58 AM · MacOS, yubikey, Bug Report
werner added a project to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7: MacOS.

Run gpg --debug ipc --card-status to quickly see the communication with the scdaemon.

Apr 30 2021, 10:47 AM · MacOS, yubikey, Bug Report
KasparEtter created T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
Apr 30 2021, 9:27 AM · MacOS, yubikey, Bug Report

Apr 29 2021

Bedlas added a comment to T5414: Input/output error (218136625).

Can you help me, please?

Apr 29 2021, 12:39 PM · Support, gpg4win

Apr 28 2021

Bedlas added a comment to T5414: Input/output error (218136625).

when I insert: gpg --verify -v Bisq-64bit-1.6.2.exe.asc at the command line (at windows), I get the answer:
gpg: cannot open "Bisq-64bit-1.6.2.exe.asc": No such file or directory
gpg: verify signatures failed: No such file or directory

Apr 28 2021, 1:35 PM · Support, gpg4win
werner added a comment to T5414: Input/output error (218136625).

Please try to verify on the command line (cmd.exe):

Apr 28 2021, 11:37 AM · Support, gpg4win
Bedlas created T5414: Input/output error (218136625).
Apr 28 2021, 9:35 AM · Support, gpg4win

Apr 27 2021

werner renamed T5411: After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GpgOL does not load, Outlook crashes. from After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GnuOL does not load, Outlook crashes. to After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GpgOL does not load, Outlook crashes..
Apr 27 2021, 2:39 PM · gpg4win, Support
werner claimed T5412: Getting "Invalid digest algorithm", when trying to generate ECDH keys, in batch mode.
Apr 27 2021, 8:14 AM · FAQ, gnupg, OpenPGP
masoudbahar created T5412: Getting "Invalid digest algorithm", when trying to generate ECDH keys, in batch mode.
Apr 27 2021, 5:14 AM · FAQ, gnupg, OpenPGP
tps800 renamed T5411: After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GpgOL does not load, Outlook crashes. from After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 to After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GnuOL does not load, Outlook crashes..
Apr 27 2021, 2:07 AM · gpg4win, Support
tps800 created T5411: After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GpgOL does not load, Outlook crashes..
Apr 27 2021, 2:06 AM · gpg4win, Support

Apr 26 2021

jukivili closed T5255: libgcrypt: build "error: invalid operand for instruction" when compiling with Clang & LTO as Resolved.
Apr 26 2021, 5:43 PM · asm, libgcrypt, clang, Bug Report
Mue added a comment to T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.

I do have the same Problem.
It started about 2 weeks ago.

Apr 26 2021, 10:39 AM · Restricted Project, Bug Report, gpg4win

Apr 23 2021

FrederickZh added a project to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1: scd.
Apr 23 2021, 6:41 AM · MacOS, Support, scd
FrederickZh created T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.
Apr 23 2021, 6:40 AM · MacOS, Support, scd
gniibe closed T5408: gpgconf should? not list disabled components as Resolved.
Apr 23 2021, 4:20 AM · Bug Report, Windows, gnupg (gpg23)

Apr 22 2021

werner triaged T5406: gnupg-2.3.1: 'make check' on all tests tries to use installed 'keyboxd' as Normal priority.
Apr 22 2021, 11:07 AM · gnupg (gpg23), Bug Report
werner changed the status of T5406: gnupg-2.3.1: 'make check' on all tests tries to use installed 'keyboxd' from Open to Testing.

You are right. The problem is that in a development version we use an envvar to locate the programs, so there is usually no problem because the software has already been installed and the final test doesn't catch this. We should add a version check to all components to catch such problems.

Apr 22 2021, 8:49 AM · gnupg (gpg23), Bug Report
werner triaged T5408: gpgconf should? not list disabled components as Normal priority.

Given that we don't yet support TPM for Windows you should go ahead and apply this patch. tpm should also be removed from the list of components.

Apr 22 2021, 8:33 AM · Bug Report, Windows, gnupg (gpg23)

Apr 21 2021

dkg added a comment to T5407: gpg fails to import second secret key in .pfx (PKCS12) file.

Apparently only one of the secret keys is actually imported: the decryption key, but not the signing key.

Apr 21 2021, 6:20 AM · gnupg24, gnupg (gpg23), Feature Request, S/MIME
cho-m added a project to T5406: gnupg-2.3.1: 'make check' on all tests tries to use installed 'keyboxd': gnupg (gpg23).
Apr 21 2021, 3:02 AM · gnupg (gpg23), Bug Report
gniibe closed T5395: libksba coverity static analysis reports as Resolved.

Thank you for your confirmation. Closing.

Apr 21 2021, 2:46 AM · libksba, Bug Report
gniibe closed T3891: kdf-setup does not set admin and user PIN codes as Resolved.
Apr 21 2021, 2:45 AM · Restricted Project, scd, Bug Report
gniibe added a project to T5297: SCM SPR332 smartcard reader support broken: gnupg (gpg22).

Fixed in GnuPG 2.3.1, so, add the tag for GnuPG 2.2.

Apr 21 2021, 2:44 AM · gnupg (gpg22), scd, Bug Report
dkg created T5407: gpg fails to import second secret key in .pfx (PKCS12) file.
Apr 21 2021, 1:59 AM · gnupg24, gnupg (gpg23), Feature Request, S/MIME

Apr 20 2021

cho-m created T5406: gnupg-2.3.1: 'make check' on all tests tries to use installed 'keyboxd'.
Apr 20 2021, 9:59 PM · gnupg (gpg23), Bug Report
neal added a comment to T5403: Consider all Issuer subpackets when validating a signature.
Apr 20 2021, 11:14 AM · OpenPGP, Feature Request
neal created T5403: Consider all Issuer subpackets when validating a signature.
Apr 20 2021, 11:11 AM · OpenPGP, Feature Request
Jakuje added a comment to T5395: libksba coverity static analysis reports.

I can't see null pointer de-reference (you claimed) in [4/5].
Could you please elaborate?

Apr 20 2021, 9:16 AM · libksba, Bug Report
gniibe added a comment to T5395: libksba coverity static analysis reports.

I applied 1,2,3, and 5 in rKfbb1f303198b: Fixes for static analysis reports.

Apr 20 2021, 6:32 AM · libksba, Bug Report
gniibe added a comment to T5395: libksba coverity static analysis reports.

I can't see null pointer de-reference (you claimed) in [4/5].
Could you please elaborate?

Apr 20 2021, 4:47 AM · libksba, Bug Report
gniibe claimed T5395: libksba coverity static analysis reports.
Apr 20 2021, 2:39 AM · libksba, Bug Report
gniibe closed T5372: assertion failure mulm_25519: different sizes in Libgrypt 1.9 as Resolved.
Apr 20 2021, 2:29 AM · !assert, Bug Report, libgcrypt
gniibe closed T5384: pinentry coverity static analysis reports as Resolved.
Apr 20 2021, 2:28 AM · pinentry, Bug Report
gniibe added a comment to T4900: OS X 10.12 and dyld: Library not loaded: /usr/local/lib/libgcrypt.20.dylib.

IIUC, with libgcrypt in LIBGCRYPT-1.8-BRANCH (not yet released) and libgcrypt 1.9.3, the build process works well (the problem with SIP has been handled).

Apr 20 2021, 2:27 AM · MacOS, libgcrypt, Bug Report

Apr 19 2021

anon85786376 added a comment to T5401: Imported ECC/Ed25519 subkey has unusable key file in private-keys-v1.d.

You can't use an EdDSA as subkey for encryption. Encryption is the default for a subkey unless you provide key usage parameters. Yes, we could flag this as an error, but I won't give it high priority.

Yes, this is an edge case very unlikely to be encountered. The odd thing is the generated "ed25519" subkey does somehow encrypt and decrypt without issue.

Apr 19 2021, 11:17 PM · gnupg26, Bug Report
werner triaged T5401: Imported ECC/Ed25519 subkey has unusable key file in private-keys-v1.d as Low priority.

You can't use an EdDSA as subkey for encryption. Encryption is the default for a subkey unless you provide key usage parameters. Yes, we could flag this as an error, but I won't give it high priority. I would anyway suggest to use

Apr 19 2021, 10:46 PM · gnupg26, Bug Report
anon85786376 created T5401: Imported ECC/Ed25519 subkey has unusable key file in private-keys-v1.d.
Apr 19 2021, 10:26 PM · gnupg26, Bug Report
werner closed T5400: 2.3.0 build issue on macOS - missing LIBICONV in sm/Makefile.am and ctype.h in tools/gpg-card.c as Resolved.
Apr 19 2021, 8:31 PM · gnupg (gpg23), Bug Report
werner added a project to T5400: 2.3.0 build issue on macOS - missing LIBICONV in sm/Makefile.am and ctype.h in tools/gpg-card.c: gnupg (gpg23).

Thanks, that was right in time for this weeks 2.3.1.

Apr 19 2021, 8:18 PM · gnupg (gpg23), Bug Report
cho-m created T5400: 2.3.0 build issue on macOS - missing LIBICONV in sm/Makefile.am and ctype.h in tools/gpg-card.c.
Apr 19 2021, 7:20 PM · gnupg (gpg23), Bug Report

Apr 16 2021

werner closed T2332: Cannot authenticate with LDAP keyserver as Resolved.

This has been fixed in version 2.2.16.

Apr 16 2021, 8:08 PM · gnupg, dirmngr, Bug Report
gniibe added a comment to T5384: pinentry coverity static analysis reports.

Fixed in rP7f7fd8bcfd74: tty: Fix error return paths and its resource leaks.

Apr 16 2021, 5:59 AM · pinentry, Bug Report
gniibe added a comment to T5384: pinentry coverity static analysis reports.

Actually, calling do_touch_file when some error(s) are not good.
Let me fix all the things.

Apr 16 2021, 5:02 AM · pinentry, Bug Report
gniibe closed T5134: GPG - will not sign nor verify the pin when using a contactless reader as Resolved.
Apr 16 2021, 4:25 AM · Not A Bug, scd, Bug Report

Apr 15 2021

xandox added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

Ok, thank you. I think task can be closed.

Apr 15 2021, 5:14 PM · MacOS, Bug Report
Jakuje added a comment to T5384: pinentry coverity static analysis reports.

I hope last amendment is the following, which can happen if the tty can be opened only for reading but not for writing:

--- a/tty/pinentry-tty.c
+++ b/tty/pinentry-tty.c
@@ -583,7 +583,8 @@ tty_cmd_handler (pinentry_t pinentry)
   if (pinentry->ttyname)
     {
       fclose (ttyfi);
-      fclose (ttyfo);
+      if (ttyfo)
+        fclose (ttyfo);
     }
Apr 15 2021, 11:43 AM · pinentry, Bug Report
werner raised the priority of T5292: regression: no longer possible to get signatures from decrypt from unknown keys from Low to Normal.
Apr 15 2021, 9:16 AM · patch, Python, gpgme, Bug Report
werner triaged T5292: regression: no longer possible to get signatures from decrypt from unknown keys as Low priority.
Apr 15 2021, 9:16 AM · patch, Python, gpgme, Bug Report
werner triaged T5364: Kleopatra won't start as Normal priority.

gpg4win 3.1 has no full Unicode support. You may try to install the new GnuPG 2.3 version on top of gpg4win to fix this problem or wait until we have releases gpg4win 4 which will come with GnuPG 2.3.

Apr 15 2021, 9:14 AM · workaround, gnupg, Windows, kleopatra, Bug Report, gpg4win
gniibe closed T5385: libgcrypt coverity static analysis reports as Resolved.

Thank you.
We also need to release memory for points.

Apr 15 2021, 9:13 AM · libgcrypt, Bug Report
werner triaged T5324: Kleopatra: Add recursive folder decryption as Normal priority.

Please tell us more details on how we can replicate your problem. Which Windows version, any non-standard software installed, non-standard installation direcories etc. You may also provide the output of

Apr 15 2021, 9:10 AM · kleopatra, Feature Request, gpg4win
werner triaged T5356: gnupg2 test failure on s390x as Normal priority.
Apr 15 2021, 9:03 AM · libgcrypt, Bug Report
werner triaged T5373: Using GCRY_THREAD_OPTION_PTHREAD_IMPL in a file compiled with Clang generates deprecation warning as Low priority.
Apr 15 2021, 9:01 AM · clang, libgcrypt, Bug Report
gniibe closed T5380: Tools needed during a build lack of CFLAGS was passed durring configure time as Resolved.

mkheader has CFLAGS_FOR_BUILD since libassuan 2.5.4.
gost-s-box has so since libgcrypt 1.9.0.

Apr 15 2021, 8:41 AM · MacOS, Bug Report
gniibe changed the status of T4848: Usage of git in configure.ac for pinentry/gpa finds incorrect repositories from Open to Testing.

Done for gpa.
Please test.

Apr 15 2021, 7:08 AM · pinentry, gpa, toolchain, Bug Report
gniibe added a comment to T4848: Usage of git in configure.ac for pinentry/gpa finds incorrect repositories.

Done for pinentry.

Apr 15 2021, 6:36 AM · pinentry, gpa, toolchain, Bug Report
gniibe closed T5100: OpenPGP app overwrites Yubikey serial number, a subtask of T5130: Kleopatra: Generating OpenPGP keys on Yubikey (with PIV enabled) fails with "General error", as Resolved.
Apr 15 2021, 4:42 AM · kleopatra, Bug Report
gniibe closed T5296: libgpg-error: build failure without threads as Resolved.
Apr 15 2021, 4:18 AM · gpgrt, Bug Report
gniibe closed T5062: gpg: error getting version from 'scdaemon': Forbidden as Resolved.

This task includes multiple issues: two sub-tasks and how-to-use remotely.
Two tasks had been fixed already.
The last one was documented here.
So, closing.

Apr 15 2021, 4:15 AM · Bug Report

Apr 14 2021

werner triaged T5395: libksba coverity static analysis reports as Normal priority.
Apr 14 2021, 8:59 PM · libksba, Bug Report
Jakuje reopened T5384: pinentry coverity static analysis reports as "Open".

Thank you for applying the provided changes!

Apr 14 2021, 5:44 PM · pinentry, Bug Report
Jakuje created T5395: libksba coverity static analysis reports.
Apr 14 2021, 10:46 AM · libksba, Bug Report
gniibe closed T5384: pinentry coverity static analysis reports as Resolved.

Applied and pushed.

Apr 14 2021, 8:58 AM · pinentry, Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

@werner No problem. Just go ahead.

Apr 14 2021, 1:45 AM · gnupg (gpg23), Bug Report

Apr 13 2021

Jakuje added a comment to T5393: gnupg coverity static analysis reports.

Regarding the identical branches thing: This is on purpose. The function works closely together with another one which will then BUG() out. @Jakuje: If you know some meta comment to attribute this, please let me know.

Apr 13 2021, 9:05 PM · gnupg (gpg23), Bug Report
werner added a comment to T5393: gnupg coverity static analysis reports.

Regarding the identical branches thing: This is on purpose. The function works closely together with another one which will then BUG() out. @Jakuje: If you know some meta comment to attribute this, please let me know.

Apr 13 2021, 7:11 PM · gnupg (gpg23), Bug Report
werner added a comment to T5393: gnupg coverity static analysis reports.

@gniibe: If you don't mind I would like to steal task this from you. I have noticed a few things which could get a little code refresh in addition to the fixes.

Apr 13 2021, 6:57 PM · gnupg (gpg23), Bug Report
Jakuje added a comment to T5393: gnupg coverity static analysis reports.

There is couple of issues that I did not want to propose a patch for, but might require some attention:

Error: IDENTICAL_BRANCHES (CWE-398): [#def28] [important]
gnupg-2.3.0/common/tlv-builder.c:353: identical_branches: The same code is executed regardless of whether "tag < 31" is true, because the 'then' and 'else' branches are identical. Should one of the branches be modified, or the entire 'if' statement replaced?
#  351|     (void)constructed;  /* Not used, but passed for uniformity of such calls.  */
#  352|   
#  353|->   if (tag < 0x1f)
#  354|       {
#  355|         buflen++;

There are also couple of reports about the function default_homedir(), which is supposed to return const char * but in reality, it sometimes allocates memory while callers do not expect it so they do not free:

Error: RESOURCE_LEAK (CWE-772): [#def11]
gnupg-2.2.27/common/homedir.c:477: alloc_fn: Storage is returned from allocation function "default_homedir".
gnupg-2.2.27/common/homedir.c:477: var_assign: Assigning: "newdir" = storage returned from "default_homedir()".
gnupg-2.2.27/common/homedir.c:488: noescape: Resource "newdir" is not freed or pointed-to in "make_absfilename".
gnupg-2.2.27/common/homedir.c:490: leaked_storage: Returning without freeing "newdir" leaks the storage that it points to.
#  488|     the_gnupg_homedir = make_absfilename (newdir, NULL);;
#  489|     xfree (tmp);
#  490|-> }
#  491|   
#  492|
Apr 13 2021, 6:47 PM · gnupg (gpg23), Bug Report
Jakuje added a comment to T5393: gnupg coverity static analysis reports.

Thank you. The initial run was against olderer version of gnupg (and had one issue in g10/keyedit.c -- see the new patch with fixup). Now I ran it against the version 2.3 and there are couple of more issues to be fixed (rebased on top of already applied changes and the previous commits).

Apr 13 2021, 3:44 PM · gnupg (gpg23), Bug Report
xandox added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

Ok.
But`CFLAGS_FOR_BUILD` not mentioned in build rule for mkheader

Apr 13 2021, 1:15 PM · MacOS, Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

Thank you.

Apr 13 2021, 8:02 AM · gnupg (gpg23), Bug Report
gniibe claimed T5393: gnupg coverity static analysis reports.
Apr 13 2021, 7:12 AM · gnupg (gpg23), Bug Report
gniibe closed T5389: gnupg 2.3 missing libassuan include directory in CFLAGS for several targets as Resolved.

Thank you. Applied and pushed.

Apr 13 2021, 6:59 AM · gnupg (gpg23), Bug Report
gniibe changed the status of T5372: assertion failure mulm_25519: different sizes in Libgrypt 1.9 from Open to Testing.
Apr 13 2021, 3:16 AM · !assert, Bug Report, libgcrypt
gniibe claimed T5384: pinentry coverity static analysis reports.

Thank you. I'll take care of this.

Apr 13 2021, 3:01 AM · pinentry, Bug Report