[PATCH] sim: check asprintf return values

Mike Frysinger vapier@gentoo.org
Wed Jan 12 18:15:00 GMT 2011


On Thursday, December 30, 2010 16:08:31 Mike Frysinger wrote:
> These are the last sources of build warnings (asprintf usage) that I see.
> 2010-12-30  Mike Frysinger  <vapier@gentoo.org>
> 
> 	* sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
> 	fails.
> 	* sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
> 	when asprintf fails.
> 	* sim-utils.c (sim_do_commandf): Issue an error and return when
> 	asprintf fails.
> 	* sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
> 	asprintf fails.

i guess this one i could merge as obvious ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110112/1d3bb1b9/attachment.sig>


More information about the Gdb-patches mailing list