[PATCH] opcodes/i386-dis.c, print_insn, null ptr.

H.J. Lu hjl@lucon.org
Wed Aug 1 22:00:00 GMT 2007


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.



More information about the Binutils mailing list