From: msnyder@sonic.net
To: gdb-patches@sourceware.org
Subject: [PATCH] jv-lang, guard against NULL
Date: Tue, 31 Jul 2007 23:29:00 -0000 [thread overview]
Message-ID: <12757.12.7.175.2.1185924312.squirrel@webmail.sonic.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 255.txt --]
[-- Type: text/plain, Size: 955 bytes --]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* jv-lang.c (java_link_class_type): Guard against NULL.
Index: jv-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/jv-lang.c,v
retrieving revision 1.47
diff -p -r1.47 jv-lang.c
*** jv-lang.c 13 Jun 2007 17:30:01 -0000 1.47
--- jv-lang.c 31 Jul 2007 23:23:06 -0000
*************** java_link_class_type (struct type *type,
*** 407,414 ****
SET_TYPE_FIELD_PRIVATE (type, 0);
}
! i = strlen (name);
! if (i > 2 && name[i - 1] == ']' && tsuper != NULL)
{
/* FIXME */
TYPE_LENGTH (type) = TYPE_LENGTH (tsuper) + 4; /* size with "length" */
--- 407,414 ----
SET_TYPE_FIELD_PRIVATE (type, 0);
}
! if (name != NULL && (i = strlen (name)) > 2
! && name[i - 1] == ']' && tsuper != NULL)
{
/* FIXME */
TYPE_LENGTH (type) = TYPE_LENGTH (tsuper) + 4; /* size with "length" */
next reply other threads:[~2007-07-31 23:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 23:29 msnyder [this message]
2007-08-02 21:06 ` Daniel Jacobowitz
[not found] ` <655C3D4066B7954481633935A40BB36F22BA4C@ussunex02.svl.access-company.com>
[not found] ` <655C3D4066B7954481633935A40BB36F22BA4C@ussunex02.svl.access-company.c om>
2007-08-02 21:30 ` FW: " msnyder
2007-08-02 21:37 ` Daniel Jacobowitz
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=12757.12.7.175.2.1185924312.squirrel@webmail.sonic.net \
--to=msnyder@sonic.net \
--cc=gdb-patches@sourceware.org \
/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