Page MenuHome GnuPG
Feed Advanced Search

Jun 7 2021

gniibe changed the status of T5469: GnuPG 2.3 regression: keydb_search failed: Invalid argument from Open to Testing.
Jun 7 2021, 7:10 AM · gnupg (gpg23)
gniibe edited projects for T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1), added: gnupg (gpg23); removed gnupg, MacOS.

In 2.3, the logic to identify Yubikey has been changed (to support PIV application).

Jun 7 2021, 5:28 AM · gnupg (gpg23), yubikey

Jun 3 2021

gniibe added a comment to T5469: GnuPG 2.3 regression: keydb_search failed: Invalid argument.

Here, we use keygrip search: https://dev.gnupg.org/source/gnupg/browse/master/g10/skclist.c$429

Jun 3 2021, 4:52 AM · gnupg (gpg23)
gniibe triaged T5469: GnuPG 2.3 regression: keydb_search failed: Invalid argument as High priority.
Jun 3 2021, 4:48 AM · gnupg (gpg23)

Jun 2 2021

werner triaged T5463: gpgconf: Options that gpgconf won't change should be flagged as read-only as Normal priority.

There is also the issue that options flagged as ignore or forced in the global config file won't have an effect either. But indeed we could mark them as non-change.

Jun 2 2021, 5:00 PM · gnupg24, gnupg (gpg23), Feature Request
werner reopened T5462: gpgconf: Make gpg/keyserver option available again as "Open".
Jun 2 2021, 7:59 AM · gnupg (gpg23), Restricted Project
werner closed T5462: gpgconf: Make gpg/keyserver option available again as Resolved.

Because an existing setting in gpg.conf overrides the keyserver set in dirmngr.conf

Jun 2 2021, 7:59 AM · gnupg (gpg23), Restricted Project

Jun 1 2021

dkg added a comment to T5462: gpgconf: Make gpg/keyserver option available again.

why not use gpgconf with the dirmngr component to set the keyserver option there?

Jun 1 2021, 11:07 PM · gnupg (gpg23), Restricted Project
ikloecker placed T5462: gpgconf: Make gpg/keyserver option available again up for grabs.
Jun 1 2021, 4:09 PM · gnupg (gpg23), Restricted Project
ikloecker created T5462: gpgconf: Make gpg/keyserver option available again.
Jun 1 2021, 10:07 AM · gnupg (gpg23), Restricted Project

May 28 2021

gniibe edited projects for T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations, added: yubikey; removed MacOS.
May 28 2021, 7:19 AM · gnupg24, yubikey, Bug Report
gniibe triaged T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations as High priority.
May 28 2021, 7:18 AM · gnupg24, yubikey, Bug Report
gniibe claimed T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

Thanks. I push the fix of yours.

May 28 2021, 7:17 AM · gnupg24, yubikey, Bug Report
gniibe merged T5451: disable-ccid breaks gpg-agent caching on MacOS (gpg 2.3.1) into T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.
May 28 2021, 3:23 AM · gnupg24, yubikey, Bug Report
gniibe merged task T5451: disable-ccid breaks gpg-agent caching on MacOS (gpg 2.3.1) into T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.
May 28 2021, 3:23 AM · scd, gnupg (gpg23), MacOS, Bug Report

May 26 2021

werner added projects to T5451: disable-ccid breaks gpg-agent caching on MacOS (gpg 2.3.1): MacOS, gnupg (gpg23), scd.
May 26 2021, 5:48 PM · scd, gnupg (gpg23), MacOS, Bug Report

May 25 2021

werner edited projects for T5449: gnupg: Do not use SHA1 by default, added: gnupg (gpg23); removed gnupg.
May 25 2021, 12:49 PM · gnupg24, gnupg (gpg23), Bug Report
lbogdan added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

@werner @ikloecker Any more thoughts / updates on this?

May 25 2021, 11:40 AM · gnupg24, yubikey, Bug Report
werner triaged T5444: "gpg: key generation failed: Unknown elliptic curve" from "Key-Type: default" as Normal priority.

You should anyway use --quick-gen-key.

May 25 2021, 8:37 AM · gnupg24, gnupg (gpg23)
cbiedl added a comment to T5444: "gpg: key generation failed: Unknown elliptic curve" from "Key-Type: default".

Setting a curve type (which shouldn't be necessary) like "Curve-Type: ed25519" doesn't help either. While this makes the check in gpg pass, the gpg-agent process re-checks the parameter set and rejects it with the same error message.

May 25 2021, 8:17 AM · gnupg24, gnupg (gpg23)

May 24 2021

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

Thank you. I checked what was missing and all looks good. But do not understand why the last gpgsplit xfree was not applied. We are leaving a block where this variable is dynamically allocated so even without error we need to free it.

May 24 2021, 4:36 PM · gnupg (gpg23), Bug Report

May 21 2021

werner triaged T5447: Add feature to delete a key from an LDAP server as Normal priority.
May 21 2021, 11:44 AM · vsd33, Restricted Project, gnupg24, LDAP

May 20 2021

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

The first two patch sets are now applied with the exception of
the gpgsplit fix; I did not applied that patch to add a free() in case of write errors.

May 20 2021, 5:37 PM · gnupg (gpg23), Bug Report
aheinecke added a comment to T5444: "gpg: key generation failed: Unknown elliptic curve" from "Key-Type: default".

Ha! This would have affected Kleopatra if we followed werners suggestion to use default. But in Kleo I decided that I needed to show my users what the default is so we do not use default in this case.

May 20 2021, 12:32 PM · gnupg24, gnupg (gpg23)
cbiedl assigned T5444: "gpg: key generation failed: Unknown elliptic curve" from "Key-Type: default" to wk.
May 20 2021, 12:29 PM · gnupg24, gnupg (gpg23)
cbiedl created T5444: "gpg: key generation failed: Unknown elliptic curve" from "Key-Type: default".
May 20 2021, 12:07 PM · gnupg24, gnupg (gpg23)
werner added a comment to T5393: gnupg coverity static analysis reports.

Please note that *_error-from_syserror accesses system's errno which may be cleared by xfree.

May 20 2021, 9:09 AM · gnupg (gpg23), Bug Report

May 18 2021

gniibe added a comment to T5439: Bug of t-keydb.c.

Possibly, it keeps running at calibrate_s2k_count, for some reason.

May 18 2021, 4:00 AM · gnupg (gpg23)
gniibe added a comment to T5439: Bug of t-keydb.c.

I was wrong.

May 18 2021, 3:18 AM · gnupg (gpg23)

May 17 2021

znull added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

It's not clear whether you are talking about PIN caching related to signing operations or decryption operations.

May 17 2021, 10:27 PM · gnupg24, yubikey, Bug Report
lbogdan added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

Just got around to testing this on Linux, and I can confirm the same behavior: decryption PIN caching works on 2.2 and doesn't work on 2.3.

May 17 2021, 1:51 PM · gnupg24, yubikey, Bug Report
lbogdan renamed T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations from gpg-agent 2.3.1: PIN caching not working to gpg-agent 2.3.1: PIN caching not working for decrypt operations.
May 17 2021, 11:21 AM · gnupg24, yubikey, Bug Report
gniibe triaged T5439: Bug of t-keydb.c as Normal priority.
May 17 2021, 10:43 AM · gnupg (gpg23)
lbogdan added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

@znull You can also fix the detection issue by building with ./configure --disable-ccid-driver, in which case you won't need the disable-ccid setting anymore.

May 17 2021, 10:10 AM · gnupg24, yubikey, Bug Report
lbogdan added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

@ikloecker Sorry for not being clear, I was not aware different operations have different behaviors in regard to entering / caching the PIN.

May 17 2021, 9:59 AM · gnupg24, yubikey, Bug Report
ikloecker added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

It's not clear whether you are talking about PIN caching related to signing operations or decryption operations.

May 17 2021, 9:22 AM · gnupg24, yubikey, Bug Report

May 15 2021

znull added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

I just wanted to chime in that I've had exactly the same experience as @lbogdan: gnupg 2.3 stopped recognizing my yubikey entirely on MacOS until the T5415 workaround (disable-ccid). After that, pin caching was broken until I applied his patch to call-scd.c:548, which makes it work as before. Without these two changes the experience with gnupg 2.3 is degraded relative to 2.2.

May 15 2021, 8:17 PM · gnupg24, yubikey, Bug Report

May 14 2021

lbogdan added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

So I did a bit more reading on smartcard PIN caching, and took a better look at the debug logging of gnupg 2.2, and learned that, indeed, the PIN is cached by the card and not by any one gnupg component.

May 14 2021, 6:44 PM · gnupg24, yubikey, Bug Report

May 12 2021

lbogdan added a comment to T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.

Yes, I already linked to T5415, but that breaks YubiKey completely, and I fixed it with disable-ccid.

May 12 2021, 6:08 PM · gnupg24, yubikey, Bug Report
werner edited projects for T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations, added: gnupg (gpg23), MacOS; removed gpgagent.

The pincache is actually not what you think it is. It is only used to allow switching between different application on a Yubikey which reqieres a new VERIFY command after switching back to the first application the card. What you feel as caching is the state of the card, which usually keeps its verification state until the card is powered down.

May 12 2021, 5:52 PM · gnupg24, yubikey, Bug Report

May 11 2021

werner added a comment to T5430: "free(): invalid pointer" from --clearsign.

FWIW, we can and should run our test suite under valgrind from time to time

May 11 2021, 9:00 AM · gnupg (gpg23)
gniibe changed the status of T5430: "free(): invalid pointer" from --clearsign from Open to Testing.
May 11 2021, 8:43 AM · gnupg (gpg23)
werner triaged T5431: Use AC_PROG_CC_C99 as Normal priority.
May 11 2021, 8:23 AM · gnupg24, toolchain, gnupg (gpg23)
gniibe added a comment to T5430: "free(): invalid pointer" from --clearsign.

Sorry, it's my fault.
Fixed in rGac731dbbbd21: gpg: Fix allocation for EXTRAHASH..

May 11 2021, 7:50 AM · gnupg (gpg23)
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Applied in rG32baa9acfb15: scd: Serialize READER_TABLE access for PC/SC..

May 11 2021, 3:42 AM · gnupg (gpg23), scd
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Please note that we don't use lock in apdu_dev_list_start/finish any more.
Use of lock is narrowed, only within apdu_open_reader function.

May 11 2021, 3:41 AM · gnupg (gpg23), scd

May 10 2021

cbiedl created T5430: "free(): invalid pointer" from --clearsign.
May 10 2021, 9:27 PM · gnupg (gpg23)
werner added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

We should add a comment at the caller side, that this takes a lock in apdu.c.

May 10 2021, 8:45 AM · gnupg (gpg23), scd
gniibe updated the diff for D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Make the lock holding narrower, and it allows no exposing reader_table_lock.

May 10 2021, 7:52 AM · gnupg (gpg23), scd
gniibe added inline comments to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.
May 10 2021, 7:51 AM · gnupg (gpg23), scd
gniibe updated the diff for D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Exposing reader_table_lock would be better.
I found a dead-lock condition when apdu_close_reader is called during apdu_dev_list_start/finish.

May 10 2021, 7:06 AM · gnupg (gpg23), scd
gniibe updated the diff for D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

And if the coding style of hiding mutex_lock/mutex_unlock inside different functions matters, we can expose the mutex to its user.

May 10 2021, 4:32 AM · gnupg (gpg23), scd
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Last commit will be:

May 10 2021, 4:29 AM · gnupg (gpg23), scd
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

The second commit is replacing a use case of close_pcsc_reader by clearing pcsc.rdrname and calling release_pcsc_context.
This makes the use of close_pcsc_reader to its original purpose only (== closing PC/SC reader as a method of close_reader).

May 10 2021, 3:48 AM · gnupg (gpg23), scd
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

OK. As I pointed out a commit having multiple things may make analysis difficult, I should have been careful.
So, let me fix the problem by multiple commits.

May 10 2021, 3:28 AM · gnupg (gpg23), scd

May 7 2021

werner requested changes to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Keeping the lock over the call to the function does not look very robust to me. This is why I removed it. And since then PC/SC worked on Windows for me. Modulo this:
All these changes don't tackle the real problem that windows gets struck in a removed-card state.

May 7 2021, 8:36 AM · gnupg (gpg23), scd
colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

Technical commentary on smartcard operation and/or Windows is going to be over my head, so I can't help (just in case you're looking for anything from me). But always happy to drive-test another build. (I've still had no issues, personally, with the build above.) I'll assume you don't need me unless you link another binary build to test or tag me. Thanks again, all.

May 7 2021, 7:22 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

The problem is accesses to reader_table by
(1) scanning reader(s) to open new one
(2) closing reader

May 7 2021, 6:59 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

I'm testing D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname, but I'm not sure about the impact on Windows.

May 7 2021, 6:54 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe requested review of D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.
May 7 2021, 6:51 AM · gnupg (gpg23), scd
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

May 5 2021

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 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

Apr 27 2021

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

Apr 23 2021

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

werner triaged T5407: gpg fails to import second secret key in .pfx (PKCS12) file as Normal priority.
Apr 21 2021, 9:09 PM · 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

Apr 20 2021

werner updated the task description for T5386: Release GnuPG 2.3.1.
Apr 20 2021, 3:35 PM · gnupg (gpg23), Release Info
werner reopened T5405: Release GnuPG 2.3.2 as "Open".
Apr 20 2021, 3:35 PM · gnupg (gpg23), Release Info
werner closed T5386: Release GnuPG 2.3.1 as Resolved.
Apr 20 2021, 3:34 PM · gnupg (gpg23), Release Info
werner closed T5405: Release GnuPG 2.3.2 as Resolved.
Apr 20 2021, 3:19 PM · gnupg (gpg23), Release Info
werner updated the task description for T5405: Release GnuPG 2.3.2.
Apr 20 2021, 3:19 PM · gnupg (gpg23), Release Info
werner triaged T5405: Release GnuPG 2.3.2 as Normal priority.
Apr 20 2021, 3:06 PM · gnupg (gpg23), Release Info

Apr 19 2021

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
werner closed T4673: 2.3-only: Don't fallback to PC/SC on failure by the internal CCID driver, only use PC/SC when --disable-ccid is specified as Resolved.
Apr 19 2021, 5:56 PM · gnupg (gpg23), Restricted Project, scd, Feature Request
werner closed T4735: Please provide an option to make --verify accept only signatures from specific trusted UID as Resolved.

aheinecke: I agree, we should not port everything back just because we could do that.

Apr 19 2021, 5:55 PM · gnupg (gpg23), Feature Request
werner closed T5000: trustdb,keybox: Adding support of v5key as Resolved.
Apr 19 2021, 5:51 PM · Restricted Project, gnupg (gpg23)
werner added a comment to T5000: trustdb,keybox: Adding support of v5key.

Has been released with 2.3.0 and we better open a new task if problems show up with v5 key. I am pretty sure that there will be a few v5 key problems after they get in real use.

Apr 19 2021, 5:51 PM · Restricted Project, gnupg (gpg23)
werner closed T4398: Rework Console and command line handling on Windows, a subtask of T4417: Work needed for gnupg 2.3, as Resolved.
Apr 19 2021, 5:48 PM · gnupg (gpg23)
werner closed T4398: Rework Console and command line handling on Windows as Resolved.

This has been released with 2.3.0 and no relevant problems have reported in the last two weeks, thus closing.

Apr 19 2021, 5:48 PM · Feature Request, gnupg (gpg23)

Apr 15 2021

werner added a project to T4673: 2.3-only: Don't fallback to PC/SC on failure by the internal CCID driver, only use PC/SC when --disable-ccid is specified: gnupg (gpg23).
Apr 15 2021, 8:39 AM · gnupg (gpg23), Restricted Project, scd, Feature Request
gniibe closed T3300: scd: Support multiple readers by PC/SC driver as Resolved.
Apr 15 2021, 7:10 AM · Restricted Project, gnupg (gpg23), scd
gniibe closed T5390: Italian translation GnuPG 2.3 as Resolved.

Thank you. Merged and pushed.

Apr 15 2021, 3:15 AM · i18n, gnupg (gpg23)

Apr 14 2021

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
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

Apr 12 2021

Jakuje added a comment to T5389: gnupg 2.3 missing libassuan include directory in CFLAGS for several targets.

(FYI I did not notice any other errors with 2.3 so far)

Apr 12 2021, 6:25 PM · gnupg (gpg23), Bug Report
Jakuje created T5393: gnupg coverity static analysis reports.
Apr 12 2021, 5:59 PM · gnupg (gpg23), Bug Report
gniibe closed T4888: GpgSM: Support ECC key generation by gpgsm_genkey, a subtask of T4098: GpgSM: Add ECC support, as Resolved.
Apr 12 2021, 12:21 PM · gnupg (gpg23), Feature Request, S/MIME