[PATCH, gfortran]: Use xasprintf instead of unchecked asprintf

Tobias Burnus burnus@net-b.de
Wed Dec 31 14:43:00 GMT 2014


Hello Uros, hi all,

Happy New Year to all.

Uros Bizjak wrote:
> Trivial and almost mechanical patch.
>
> 2014-12-31  Uros Bizjak  <ubizjak@gmail.com>
>
>      * trans-array.c (trans_array_bound_check): Use xasprintf instead
>      of unchecked asprintf.
>      (gfc_conv_array_ref): Ditto.
>      (gfc_conv_ss_startstride): Ditto.
>      (gfc_trans_dummy_array_bias): Ditto.
>      (gfc_conv_array_parameter): Ditto.
>      * trans-decl.c (gfc_generate_function_code): Ditto.
>      * trans-expr.c (gfc_conv_substring): Ditto.
>      (gfc_conv_procedure_call): Ditto.
>      * trans-io.c (gfc_trans_io_runtime_check): Ditto.
>      (set_string): Ditto.
>      * trans.c (trans-runtime_error_vararg): Ditto.
>
> Bootstrapped and regression tested on x86_64-linux-gnu.
> OK for mainline?

OK. Thanks for the patch!

Tobias



More information about the Gcc-patches mailing list