From: Nick Roberts <nickrob@snap.net.nz>
To: msnyder@sonic.net
Cc: gdb-patches@sourceware.org
Subject: Re: [resubmit] memory leak, mi-cmd-var
Date: Fri, 29 Jun 2007 05:51:00 -0000 [thread overview]
Message-ID: <18052.38305.461372.362123@kahikatea.snap.net.nz> (raw)
In-Reply-To: <5313.12.7.175.2.1183091734.squirrel@webmail.sonic.net>
> I left the test for NULL in place, because I can't convince myself
> that it is un-necessary.
mi_cmd_var_set_format (char *command, char **argv, int argc) is called like
main (char **argv, int argc). So if argc=2, which it must be at this point,
then argv[1] can't be NULL can it? If it is, there must be something seriously
wrong with the arguments of its caller, mi_cmd_execute (elements of struct
mi_parse *parse), and other MI commands will surely fail too.
> Therefore the conservative approach is to
> leave it in. I've moved it to earlier so that if it's goint to error,
> we won't do unnecessary work.
The conservative approach would be to wait until after the release, or at
least the branch/branchpoint.
In Emacs we went through a similar process before the release. Dan Nicolaescu
reviewed the error list and submitted errors that he thought might cause
problems. Members of the mailing list would comment as to whether they thought
a change was need or not. Patches were only submitted once it was agreed that
there was a potential problem. At least that's my recollection - I didn't get
involved.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2007-06-29 5:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 5:16 msnyder
2007-06-29 5:51 ` Nick Roberts [this message]
2007-06-29 11:34 ` msnyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18052.38305.461372.362123@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@sonic.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox