[ cinepaint-Bugs-3334766 ] Uninitialized variable in fl_initialise_locale (main.c)

"SourceForge.net" <[email protected]> Sun, 26 Jun 2011 12:31:37 -0400
Newsgroups gmane.comp.video.cinepaint.devel
Message-ID <[email protected]>
Bugs item #3334766, was opened at 2011-06-26 12:31
Message generated for change (Tracker Item Submitted) made by ggeleji
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542706&aid=3334766&group_id=75029

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Linux
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Geza Geleji (ggeleji)
Assigned to: Nobody/Anonymous (nobody)
Summary: Uninitialized variable in fl_initialise_locale (main.c)

Initial Comment:
The variable "locale" may still be uninitialized when it is passed to fl_set_codeset_, which calls strlen() on it.
Proposed fix: insert "memset(locale, 0, TEXTLEN);" right after the declaration "char locale[TEXTLEN];" in fl_initialise_locale of main.c. This seems to keep valgrind happy.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542706&aid=3334766&group_id=75029

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2