gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GnuTLS 3.0.14 gnutls-serv segfaults when an invalid number is passed


From: Bruce Korb
Subject: Re: GnuTLS 3.0.14 gnutls-serv segfaults when an invalid number is passed to --debug
Date: Wed, 29 Feb 2012 07:19:01 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0

On 02/29/12 00:54, Simon Josefsson wrote:
You are right.  I was asleep at the wheel.  Please try:

   http://autogen.sourceforge.net/data/autogen-5.15pre15.tar.xz

I don't immediately see anything that solve this problem though.  Bruce,
was the fix for this problem included in the 5.15 release?

I sometimes fall asleep (become inattentive), but so far I've not
put a fix into a pre-release that wasn't in the final release.
The fix for this was _really_ tiny:

@@ -55,10 +51,10 @@ optionShowRange(tOptions* pOpts, tOptDesc* pOD, void
* rng_table, int rng_ct)
     if (pOpts != OPTPROC_EMIT_USAGE) {
         if (pOpts <= OPTPROC_EMIT_LIMIT)
             return;
-        pz_indent = onetab;
+        pz_indent = ONE_TAB_STR;

         fprintf(option_usage_fp, zRangeErr, pOpts->pzProgName,
-                pOD->pz_Name, pOD->optArg.argString);
+                pOD->pz_Name, pOD->optArg.argInt);
         pz_indent = "";
     }

and the format string was changed from "%s" to "%ld".
So, it's fixed.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]