]> granicus.if.org Git - strace/commit
unwind.c: non-fatal handling of asprintf error
authorEugene Syromiatnikov <esyr@redhat.com>
Fri, 4 Aug 2017 06:43:16 +0000 (08:43 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Dec 2017 00:35:31 +0000 (00:35 +0000)
commit243239d41a38ede7076d1796dd6e26a82336445f
treea790c75e4a53063de011d65690da7e29eef82bd2
parentcfec0f6e6c6541331a820421f245ea4f8c817259
unwind.c: non-fatal handling of asprintf error

An error returned by asprintf is a poor excuse for dying.

* unwind.c (asprintf_error_str): New string constant.
(sprint_call_or_error): Replace error_msg_and_die() with
perror_func_msg() and usage of asprintf_error_str for a return value.
(queue_print): Free tmp->output line only if it is not
asprintf_error_str.
unwind.c