This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, gfortran]: Use xasprintf instead of unchecked asprintf
- From: Tobias Burnus <burnus at net-b dot de>
- To: Uros Bizjak <ubizjak at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Fortran List <fortran at gcc dot gnu dot org>
- Date: Wed, 31 Dec 2014 15:37:05 +0100
- Subject: Re: [PATCH, gfortran]: Use xasprintf instead of unchecked asprintf
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ahcpYHLVGJWx1SKrJ=hn-hv-dQo8_KhYmftQHM5AR+ow at mail dot gmail dot com>
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