Dear developers,

Using version 0.9.8j, compiled with option -DPURIFY, I get from valgrind a warning about an
  unitialized variable at line 494 of ui_lib.c .

Looking at the code it looks like the field 'flags' of the 'UI' structure is never initialized: in the
  UI_new_method() all the other fields are initialized except that one.
  Is that wanted?
  I have checked that, by adding the following line:

     ret->flags = 0;

  in UI_new_method() (as in the attached patch) the warning disappears.

  Thank you for your attention,

  Gerardo Ganis,

+--------------------------------------------------------------------------+

 Gerardo GANIS    PH Department, CERN

address CERN, CH 1211 Geneve 23
                  room: 32-RC-017, tel / fax: +412276 76439 / 69133

        e-mail    [email protected]

+--------------------------------------------------------------------------+

*** ./crypto/ui/ui_lib.origine.c        Tue Jul 26 22:55:16 2005
--- ./crypto/ui/ui_lib.c        Fri Feb 13 19:23:33 2009
***************
*** 90,95 ****
--- 90,96 ----
  
        ret->strings=NULL;
        ret->user_data=NULL;
+       ret->flags=0;
        CRYPTO_new_ex_data(CRYPTO_EX_INDEX_UI, ret, &ret->ex_data);
        return ret;
        }

Reply via email to