This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] opcodes/i386-dis.c, print_insn, null ptr.
- From: "H.J. Lu" <hjl at lucon dot org>
- To: msnyder at sonic dot net
- Cc: gdb-patches at sourceware dot org, binutils at sourceware dot org
- Date: Wed, 1 Aug 2007 15:00:00 -0700
- Subject: Re: [PATCH] opcodes/i386-dis.c, print_insn, null ptr.
- References: <6845.12.7.175.2.1186002936.squirrel@webmail.sonic.net>
On Wed, Aug 01, 2007 at 02:15:36PM -0700, msnyder@sonic.net wrote:
> If we come to this point via the default case in the switch
> statement above, we will not have updated 'dp' and dp->name
> will still be null. Then putop will dereference it.
>
> 2007-08-01 Michael Snyder <msnyder@access-company.com>
>
> * i386-dis.c (print_insn): Guard against NULL.
>
It is OK.
Thanks.
H.J.