Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [RFA] initialize err variable in load_section_callback()
@ 2005-01-04  7:31 Paul Schlie
  2005-01-14 23:29 ` Paul Schlie
  2005-01-27 19:38 ` PING: " Paul Schlie
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Schlie @ 2005-01-04  7:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Theodore A. Roth, Andrew Cagney

Might Ted please be given authorization to check his October patch into
both the 6.3 and head branches, as it fixes an uninitialized variable
problem which has already been subsequently independently found with
identical fixes proposed at least a few times since:

 http://sources.redhat.com/ml/gdb-patches/2004-10/msg00324.html

(Although there appeared to be some discussion with Andrew on the subject,
 this fix should be considered the least fragile way to guarantee that
 the err variable declared within this function's scope is initialized,
 as it's likely too fragile to assume that all functions which may signal
 errors, explicitly also signal success [other than via the absents of an
 error, which typically necessitates the utilized shared signaling variable
 be initialized as being error-free]. Where then if there is a desire to
 check/refined all error signaling functions within GDB such that they both
 explicitly signal success and failure, and guarantee that at least one
 such function is always called to initialize otherwise un-initialized error
 variables prior to being tested, this may be done independently of this
 proposed simple less fragile quick fix.)




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-27 19:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-04  7:31 [RFA] initialize err variable in load_section_callback() Paul Schlie
2005-01-14 23:29 ` Paul Schlie
2005-01-27 19:38 ` PING: " Paul Schlie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox