Page MenuHome GnuPG
Feed All Stories

Aug 29 2014

sacrishi added a comment to T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.

ok sir, i will abide by what you say.

Aug 29 2014, 12:13 PM · Bug Report, libgcrypt
sacrishi added a comment to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.

I include both of you as i noticed that you both are active code checkers in
Gcrypt, thats the only reason, anyways thanks for lookup.

Aug 29 2014, 12:11 PM · Won't Fix, Bug Report, libgcrypt
werner added a comment to T1704: SCO OpenServer build fix.

To disable the visibility feature the GCRY_USE_VISIBILITY macro is used. That
is figured out by configure and thus the place to fix it. I can't accept this
patch.

Aug 29 2014, 12:00 PM · Won't Fix, Bug Report, libgcrypt
werner added a comment to T1693: Spurious "Enter new filename" prompt.

If you use gpg without a command option, gpg tries to figure out what
to do. Now if that file looks like an OpenPGP packet, gpg assumes it
is one and tries to decrypt and verify it.

If you want to verify a signature you need to run gpg with the proper
command, i.e.

  gpg --verify FILENAME

Thus this is clearly a usage error.

Right, some Unicode characters may mess up the output, this is a well
known problem and iirc there is another bug report on this.

Please continue a discussion at the gnupg-users mailing list.

Aug 29 2014, 11:55 AM · Not A Bug, gnupg
werner claimed T1701: SP 800-90A deterministic Random Bit Generator.
Aug 29 2014, 11:43 AM · patch, libgcrypt, Feature Request
werner added a comment to T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.

An no reminders after 3 days please. We are all unpaid volunteers.

Aug 29 2014, 11:42 AM · Bug Report, libgcrypt
werner placed T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623 up for grabs.
Aug 29 2014, 11:41 AM · Won't Fix, Bug Report, libgcrypt
werner added a comment to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.

Such leaks won't be fixed in an old branch. Please report only for stable and
master. Is there a reason why you always include aheinecke in the nosy list?
And please do not assign a bug to a specific person - keep it unspecified.

Aug 29 2014, 11:41 AM · Won't Fix, Bug Report, libgcrypt
werner added a comment to T1579: --recv-key with full fingerprint does not actually check that the received key matches the fingerprint.

Meanwhile implemnted in all branches.

Aug 29 2014, 11:37 AM · gnupg, Feature Request
werner closed T1579: --recv-key with full fingerprint does not actually check that the received key matches the fingerprint as Resolved.
Aug 29 2014, 11:37 AM · gnupg, Feature Request
sacrishi added a comment to T1707: Resource leak in file "cipher/elgamal.c" in function "elg_generate_ext" at line 644.

Reminder for bug review.

Aug 29 2014, 8:57 AM · Bug Report, libgcrypt
sacrishi added a comment to T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.

Reminder for bug review.

Aug 29 2014, 8:57 AM · Bug Report, libgcrypt
sacrishi added a comment to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.

Reminder for bug review.

Aug 29 2014, 8:56 AM · Won't Fix, Bug Report, libgcrypt

Aug 28 2014

smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

On 32 bit, a problem was just discovered in the kernel development branch: see
discussion in https://lkml.org/lkml/2014/8/26/59.

The base line is that the bit shift in drbg_max_addtl and drbg_max_requests are
stored in a size_t which is 32 bit on 32 bit machines. Yet, the bit shift is
larger than 32 bit. It will be fixed in the next installment of the patch.

Aug 28 2014, 9:36 AM · patch, libgcrypt, Feature Request

Aug 27 2014

sacrishi updated subscribers of T1707: Resource leak in file "cipher/elgamal.c" in function "elg_generate_ext" at line 644.
Aug 27 2014, 11:52 AM · Bug Report, libgcrypt
sacrishi added projects to T1707: Resource leak in file "cipher/elgamal.c" in function "elg_generate_ext" at line 644: libgcrypt, Bug Report.
Aug 27 2014, 11:52 AM · Bug Report, libgcrypt
sacrishi set Version to 1.5.4 on T1707: Resource leak in file "cipher/elgamal.c" in function "elg_generate_ext" at line 644.
Aug 27 2014, 11:52 AM · Bug Report, libgcrypt
sacrishi added a comment to T1707: Resource leak in file "cipher/elgamal.c" in function "elg_generate_ext" at line 644.

D245: 481_elgmal.patch

Aug 27 2014, 11:52 AM · Bug Report, libgcrypt
sacrishi renamed T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623 from Resource leak in file "cipher/pubkey.c" in function "gcry_pk_genkey" at line 3623 to Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.
Aug 27 2014, 10:53 AM · Won't Fix, Bug Report, libgcrypt
sacrishi added a comment to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.

D243: 480_pubkey.patch

Aug 27 2014, 10:53 AM · Won't Fix, Bug Report, libgcrypt
sacrishi added a comment to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.

File: cipher/pubkey.c

Bug No. : 1


Function: gcry_pk_encrypt
Line of error: 2879

Resource leak occurs as variable "data" with assigned memory is not freed
before going out of scope , which causes memory leak.

Libgcrypt version 1.5.4 code:

  rc = sexp_data_to_mpi (s_data, &data, &ctx);
  if (rc)
    goto leave;

-> here when the code flow jumps to leave,"data" goes out of scope ,which
despite of being allocated memory is not freed before going out of scope.

Recommended Code:

rc = sexp_data_to_mpi (s_data, &data, &ctx);
if (rc)

    {
      mpi_free (data);
      data = NULL;
      goto leave;
    }

Here it is ensured that "data" is freed ,preventing any chances of leak

Bug No. : 2


Function: gcry_pk_genkey
Line of error: 3623

Resource leak occurs as variable "string" with assigned memory is not freed
before going out of scope , which causes memory leak.

Libgcrypt version 1.5.4 code:

   if (!arg_list)
        {
          rc = gpg_err_code_from_syserror ();
          goto leave;
        }

-> here when the code flow jumps to leave,"string" goes out of scope ,which
despite of being allocated memory is not freed before going out of scope.

Recommended Code:

if (!arg_list)

{
  rc = gpg_err_code_from_syserror ();
  gcry_free (string)
  goto leave;
}

I am attaching a patch for the above raised bugs.

Aug 27 2014, 10:53 AM · Won't Fix, Bug Report, libgcrypt
sacrishi added a comment to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.

D244: 479_pubkey.patch

Aug 27 2014, 6:37 AM · Won't Fix, Bug Report, libgcrypt
sacrishi added projects to T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623: libgcrypt, Bug Report.
Aug 27 2014, 6:37 AM · Won't Fix, Bug Report, libgcrypt
sacrishi updated subscribers of T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.
Aug 27 2014, 6:37 AM · Won't Fix, Bug Report, libgcrypt
sacrishi set Version to 1.5.4 on T1706: Resource leak in file "cipher/pubkey.c" in function "gcry_pk_encrypt" at line 2876 and "gcry_pk_genkey" at line 3623.
Aug 27 2014, 6:37 AM · Won't Fix, Bug Report, libgcrypt

Aug 26 2014

aheinecke added a project to T1571: gpg --multifile and wildcards problem on Windows: Restricted Project.
Aug 26 2014, 10:47 AM · Bug Report, Windows 32, gpg4win, Windows
aheinecke updated subscribers of T1571: gpg --multifile and wildcards problem on Windows.
Aug 26 2014, 10:47 AM · Bug Report, Windows 32, gpg4win, Windows
aheinecke added a comment to T1571: gpg --multifile and wildcards problem on Windows.

Now for 2.2.2 we've switched to a new dedicated buildsystem with a fully updated
debian wheezy whereas the old buildsystem was a debian unstable snapshot with
the same mingw Version: 2.0.3-1
I could not find an upstream bug or any indication that there was a fix for this.

But with beta-37 of 2.2.2 I was able to use wildcards on the command line.
I am out of my wits why this works now.

Emanuel: can you confirm that wildcards now work on the command line so that we
can mention this in the news and maybe look at integrating the patch into gnupg?
I'd like a different pair of eyes on that behavior. Maybe I've just messed up my
testsystem.

Aug 26 2014, 10:47 AM · Bug Report, Windows 32, gpg4win, Windows
aheinecke added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

I've commited the patch to gpg4win so it will be part of the 2.2.2 release.

Thanks for summing up the other problems. I've added a reference to this issue
to the "Improve encoding handling" point in the backlog:
http://wiki.gnupg.org/Gpg4win/Wishlist

Aug 26 2014, 9:55 AM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
sacrishi added a comment to T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.

D241: 478_primegen.patch

Aug 26 2014, 9:35 AM · Bug Report, libgcrypt
sacrishi updated subscribers of T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.
Aug 26 2014, 9:35 AM · Bug Report, libgcrypt
sacrishi assigned T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221 to werner.
Aug 26 2014, 9:35 AM · Bug Report, libgcrypt
sacrishi added projects to T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221: libgcrypt, Bug Report.
Aug 26 2014, 9:28 AM · Bug Report, libgcrypt
sacrishi set Version to 1.6.1 on T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.
Aug 26 2014, 9:28 AM · Bug Report, libgcrypt
sacrishi added a comment to T1705: Resource leak in file "cipher/primegen.c" at line 676 , 1215 and at 1221.

D242: 477_primegen.patch

Aug 26 2014, 9:28 AM · Bug Report, libgcrypt

Aug 25 2014

aheinecke removed a project from T1558: Case-sensitive to: field: Restricted Project.
Aug 25 2014, 6:19 PM · Bug Report, gpgol
aheinecke added a comment to T1558: Case-sensitive to: field.

Thanks for the feedback!

Aug 25 2014, 6:19 PM · Bug Report, gpgol
aheinecke closed T1558: Case-sensitive to: field as Resolved.
Aug 25 2014, 6:19 PM · Bug Report, gpgol
daniel.lidberg_gmail.com added a comment to T1558: Case-sensitive to: field.

Not sure but everything seems to be working in the 2.2.2-beta relase.

Aug 25 2014, 6:18 PM · Bug Report, gpgol
andreaerdna added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

Thanks Andre for the patch!

I managed to build gpg4win with the patch added and I verified that it seems to
solve the problem reported by me and also in Issues 1373 and 1674!

But I'd like to summarize the problems related to the charset / codepage on MS
Windows of which I am aware, as a reminder:

  1. incorrect display of GPG 2 output translated into another language (also

reported in Issue 1373 and Issue 1674): fixed by your patch;

  1. passphrases (both for secret keys and symmetrical encryption) with non ASCII

characters set using GPG 1.4.18 are considered not valid using GPG 2.0.26 and
vice versa

  1. incorrect display of filenames with non ASCII characters (also in Issue 1409)
  1. GPG 2.0.26 and 1.4.18 ignore or weirdly comply with --utf8-strings, --no-

utf8-strings or --charset options for utf-8 encoding of encrypted filenames (see
Issue 1409)

  1. charset weirdness searching keyserver for some non-ASCII user IDs under non-

UTF-8 locales (see Issue 1514 - although relates to Linux it seems to occur also
on Windows, both CLI and GPA but not Kleopatra)

Hope this will help to improve the great GnuPG :-)

Aug 25 2014, 4:29 AM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
andreaerdna added a project to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows: gnupg (gpg14).
Aug 25 2014, 4:26 AM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg

Aug 22 2014

catalin.m added a comment to T1695: memory fault in gpg --gen-key on AIX 6.1.

The user shell is ksh.

The gunpg2 memory fault error apears when i'm using libassuan version 2.1.1
(installed from perlz.org link)

I compiled gnupg-2.0.26 with libassuan-2.1.2 and the gnupg2 does not crash but
instead is just blocked waiting for something no matter what the gpg-agent is on
or off.

/opt/freeware/bin/gpg-agent &

[1] 31654070

jobs

[1] + Running /opt/freeware/bin/gpg-agent &

/opt/freeware/bin/gpg2 --gen-key

gpg (GnuPG) 2.0.26; Copyright (C) 2013 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Warning: using insecure memory!
Please select what kind of key you want:

(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)

Your selection?
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
Please specify how long the key should be valid.

   0 = key does not expire
<n>  = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years

Key is valid for? (0)
Key does not expire at all
Is this correct? (y/N) y

GnuPG needs to construct a user ID to identify your key.

Real name: keytest01
Email address: catalin.mocanu@ing.ro
Comment: keytest with gpg-agent up
You selected this USER-ID:

    "keytest01 (keytest with gpg-agent up) <catalin.mocanu@ing.ro>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

[Comment: Here I'm waiting 4-5 minute and nothing is happening]

[2] + Stopped (SIGTSTP) /opt/freeware/bin/gpg2 --gen-key

jobs

[2] + Stopped (SIGTSTP) /opt/freeware/bin/gpg2 --gen-key
[1] - Running /opt/freeware/bin/gpg-agent &

Any hints?

Aug 22 2014, 4:58 PM · Info Needed, gnupg (gpg20), Bug Report, libassuan
smueller_chronox.de updated subscribers of T1701: SP 800-90A deterministic Random Bit Generator.
Aug 22 2014, 12:42 PM · patch, libgcrypt, Feature Request

Aug 21 2014

wiz set Version to 1.6.2 on T1704: SCO OpenServer build fix.
Aug 21 2014, 9:54 PM · Won't Fix, Bug Report, libgcrypt
wiz added projects to T1704: SCO OpenServer build fix: libgcrypt, Bug Report.
Aug 21 2014, 9:54 PM · Won't Fix, Bug Report, libgcrypt
wiz added a comment to T1704: SCO OpenServer build fix.

D240: 476_patch-src_visibility.h

Aug 21 2014, 9:54 PM · Won't Fix, Bug Report, libgcrypt
wiz added projects to T1703: Solaris 9 Sparc/gcc build fix: libgcrypt, Bug Report.
Aug 21 2014, 9:50 PM · Bug Report, libgcrypt
wiz set Version to 1.6.2 on T1703: Solaris 9 Sparc/gcc build fix.
Aug 21 2014, 9:50 PM · Bug Report, libgcrypt
wiz added a comment to T1703: Solaris 9 Sparc/gcc build fix.

D239: 475_patch-ad

Aug 21 2014, 9:50 PM · Bug Report, libgcrypt
wiz set Version to 1.6.2 on T1702: file descriptor warning fixes for NetBSD when set*id.
Aug 21 2014, 9:46 PM · Bug Report, libgcrypt
wiz added a comment to T1702: file descriptor warning fixes for NetBSD when set*id.

D238: 474_patch-ab

Aug 21 2014, 9:46 PM · Bug Report, libgcrypt
wiz added projects to T1702: file descriptor warning fixes for NetBSD when set*id: libgcrypt, Bug Report.
Aug 21 2014, 9:46 PM · Bug Report, libgcrypt
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D231: 473_v7-0007-User-interface-to-DRBG.patch

Aug 21 2014, 9:45 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D232: 472_v7-0006-DRBG-specific-gcry_control-requests.patch

Aug 21 2014, 9:45 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D233: 471_v7-0005-Function-definitions-for-gcry_control-callbacks.patch

Aug 21 2014, 9:44 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D234: 470_v7-0004-Invoke-DRBG-from-common-libgcrypt-RNG-code.patch

Aug 21 2014, 9:44 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D235: 469_v7-0003-Function-definitions-of-interfaces-for-random.c.patch

Aug 21 2014, 9:44 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D236: 468_v7-0001-SP800-90A-Deterministic-Random-Bit-Generator.patch

Aug 21 2014, 9:44 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added a comment to T1701: SP 800-90A deterministic Random Bit Generator.

D237: 467_v7-0002-Compile-DRBG.patch

Aug 21 2014, 9:43 PM · patch, libgcrypt, Feature Request
smueller_chronox.de added projects to T1701: SP 800-90A deterministic Random Bit Generator: Feature Request, libgcrypt.
Aug 21 2014, 9:43 PM · patch, libgcrypt, Feature Request
aheinecke closed T843: Windows Install gpg4win-1.1.3.exe wipes out existing System path. as Resolved.
Aug 21 2014, 7:44 PM · Bug Report, gpg4win
aheinecke changed Version from 0.8.1 to 0.8.4 on T1372: pinentry-qt4 passphrase text field too small (Oxygen Style).
Aug 21 2014, 7:43 PM · Bug Report, pinentry
aheinecke claimed T1372: pinentry-qt4 passphrase text field too small (Oxygen Style).
Aug 21 2014, 7:43 PM · Bug Report, pinentry
aheinecke added a comment to T1520: Windows XP crash when backing up the key.

resolved as invalid.

Aug 21 2014, 7:40 PM · Bug Report, gpg4win
aheinecke closed T1520: Windows XP crash when backing up the key as Resolved.
Aug 21 2014, 7:40 PM · Bug Report, gpg4win
aheinecke added a project to T1553: GPG OL : add a recipient: Restricted Project.
Aug 21 2014, 7:38 PM · Bug Report, gpgol
aheinecke added a comment to T1553: GPG OL : add a recipient.

Should be fixed in 1.2.1 (part of gpg4win-2.2.2-beta)

Aug 21 2014, 7:38 PM · Bug Report, gpgol
aheinecke added a project to T1558: Case-sensitive to: field: Restricted Project.
Aug 21 2014, 7:37 PM · Bug Report, gpgol
aheinecke added a comment to T1558: Case-sensitive to: field.

Are you sure that the case sensitivity was the problem here and not the general
Problem that Exchange Addresses were not looked up correctly?

It would be helpful if you could test this with gpgol 1.2.1 (part of
gpg4win-2.2.2-beta) if this is still an issue I'll look into it.

Aug 21 2014, 7:37 PM · Bug Report, gpgol
aheinecke added a project to T1552: GPG OL "could not find all objects": Restricted Project.
Aug 21 2014, 7:32 PM · Bug Report, gpgol
aheinecke placed T1552: GPG OL "could not find all objects" up for grabs.
Aug 21 2014, 7:32 PM · Bug Report, gpgol
aheinecke added a comment to T1552: GPG OL "could not find all objects".

Hi Jon,
can you check this please with the current gpg4win-2.2.2 beta? I've fixed some
object resolution bugs there when Sender / Recipient addresses were not SMTP only.

Thanks

Aug 21 2014, 7:32 PM · Bug Report, gpgol
aheinecke added a comment to T1529: GpgOL for Outlook 2010+ does not read Address entrys from Exchange.

This should be working with gpgOl 1.2.1

As I don't have a test set up I'm setting this to resolved until someone complains.

Aug 21 2014, 7:30 PM · Bug Report, Windows 32, gpgol, gpg4win, Windows
aheinecke closed T1529: GpgOL for Outlook 2010+ does not read Address entrys from Exchange as Resolved.
Aug 21 2014, 7:30 PM · Bug Report, Windows 32, gpgol, gpg4win, Windows
werner changed Version from 1.6.1 to 1.7 on T1682: whirlpool amd64 assembly.
Aug 21 2014, 2:56 PM · Won't Fix, libgcrypt, Feature Request
werner added a comment to T1682: whirlpool amd64 assembly.

To go into master.

Aug 21 2014, 2:56 PM · Won't Fix, libgcrypt, Feature Request
werner added a comment to T1682: whirlpool amd64 assembly.

Please send a DCO to gcrypt-devel and ask for a review of the code.

Aug 21 2014, 2:56 PM · Won't Fix, libgcrypt, Feature Request
werner closed T1668: libgcrypt build on freebsd 10.0-amd64 fails, cast5-amd64.S not linked to build as Resolved.
Aug 21 2014, 2:55 PM · FreeBSD, Bug Report, libgcrypt
werner added a comment to T1631: configure option mispelled in help message --enable-kfds should be --enable-kdfs.

fixed. Thanks.

Aug 21 2014, 2:54 PM · Bug Report, libgcrypt
werner closed T1631: configure option mispelled in help message --enable-kfds should be --enable-kdfs as Resolved.
Aug 21 2014, 2:54 PM · Bug Report, libgcrypt
werner closed T1651: libgcrypt-git prevents encrypted LUKS/LVM to boot as Resolved.
Aug 21 2014, 2:51 PM · Info Needed, Bug Report, libgcrypt
werner closed T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071 as Resolved.
Aug 21 2014, 2:15 PM · Bug Report, libgcrypt
werner reopened T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071 as "Open".
Aug 21 2014, 2:14 PM · Bug Report, libgcrypt
werner added a comment to T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071.

Done for master and 1.6.

Aug 21 2014, 2:14 PM · Bug Report, libgcrypt
werner added a comment to T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071.

Okay, but probaly only in master.

Aug 21 2014, 12:54 PM · Bug Report, libgcrypt
werner closed T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071 as Resolved.
Aug 21 2014, 12:54 PM · Bug Report, libgcrypt
werner closed T1700: A NULL pointer may be dereferenced in file "cipher/elgamal.c" inside function "generate_using_x" on line 387 as Resolved.
Aug 21 2014, 12:53 PM · Bug Report, libgcrypt
werner removed a project from T1700: A NULL pointer may be dereferenced in file "cipher/elgamal.c" inside function "generate_using_x" on line 387: Restricted Project.
Aug 21 2014, 12:53 PM · Bug Report, libgcrypt
werner removed a project from T1697: Wrong if conditional check may lead to dereferencing of a NULL pointer in file cipher/md.c on line 1267: In Progress.
Aug 21 2014, 12:53 PM · Bug Report, libgcrypt
werner added a comment to T1697: Wrong if conditional check may lead to dereferencing of a NULL pointer in file cipher/md.c on line 1267.

ported to 1.6.

Aug 21 2014, 12:53 PM · Bug Report, libgcrypt
werner closed T1697: Wrong if conditional check may lead to dereferencing of a NULL pointer in file cipher/md.c on line 1267 as Resolved.
Aug 21 2014, 12:53 PM · Bug Report, libgcrypt
sacrishi added a comment to T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071.

Yes you may , as it would be quite helpful in further vigilance :)

Aug 21 2014, 12:22 PM · Bug Report, libgcrypt
werner added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

Good anlysis. Thanks.
Feel free to put it as a patch into gpg4win.
I need to look closer at it because we have have the gettext code also in
libgpg-error. You should also send a DCO for GnuPG.

Aug 21 2014, 12:18 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
werner added a comment to T1698: Dereferencing of a NULL pointer may occur in file "src/sexp.c" in function "vsexp_sscan" inside the for loop on line 1071.

This is a false positive of your scanner. BUFFER may very well be NULL if the
caller used NULL for the buffer arg (which is the format string). Using NULL
for the format is not defined (cf. printf).

The condition testing BUFFER before calling is merely a general failsafe pattern
of a commly used code snippet.

If it helps you scanner to avoid such fails positive I can do an explicit check
for buffer being NULL. Shall I do that?

Aug 21 2014, 12:10 PM · Bug Report, libgcrypt
aheinecke added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

Aug 21 2014, 12:07 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
aheinecke added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

Pretty picture.

Aug 21 2014, 12:07 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
aheinecke added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

D211: 465_0001-Let-wchar_to_native-convert-to-console-codepage.patch

Aug 21 2014, 12:07 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
aheinecke updated subscribers of T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.
Aug 21 2014, 12:07 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
aheinecke assigned T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows to werner.
Aug 21 2014, 12:07 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg
aheinecke added a comment to T1691: Charset / codepage problems in GnuPG 2.0.26 on MS Windows.

I've taken a look at this. The problem is that the working conversion code in
jnlib/utf8conv.c is not used on Windows but instead jnlib/w32-gettext.c does
it's own conversion to wchar and then back from wchar to the native codepage
which is simpler and should work.

But the conversion back used the wrong codepage. CP_ACP instead of the codepage
retuned by GetConsoleOutputCP. jnlib/utf8conv.c actually had a comment
explaining why it is neccessary to use GetConsoleOutputCP.

With this changed (see attached patch) I get correct output and can verify /
sign files with non-ascii filenames.

I think gnupg master behaves differently though and I don't have a test setup
for this so the patch is only against STABLE.

Werner any objections into including this patch into GnuPG / Gpg4Win?

Aug 21 2014, 12:07 PM · gnupg (gpg14), gnupg (gpg20), Windows 32, Windows, gpg4win, Bug Report, gnupg