This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]