GnuTLS 3.0.14 gnutls-serv segfaults when an invalid number is passed to --debug

Bruce Korb bkorb at gnu.org
Wed Feb 29 16:19:01 CET 2012


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.




More information about the Gnutls-devel mailing list