Re: [systemd-devel] [PATCH] always check asprintf return code

2014-07-26 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jul 25, 2014 at 07:03:20PM +0400, Andrey Borzenkov wrote: В Fri, 25 Jul 2014 15:38:31 +0200 Karel Zak k...@redhat.com пишет: There is a small number of the places in sources where we don't check asprintf() return code and assume that after error the function returns NULL pointer

[systemd-devel] [PATCH] always check asprintf return code

2014-07-25 Thread Karel Zak
There is a small number of the places in sources where we don't check asprintf() return code and assume that after error the function returns NULL pointer via the first argument. That's wrong, after error the content of pointer is undefined. --- src/core/unit-printf.c

Re: [systemd-devel] [PATCH] always check asprintf return code

2014-07-25 Thread Andrey Borzenkov
В Fri, 25 Jul 2014 15:38:31 +0200 Karel Zak k...@redhat.com пишет: There is a small number of the places in sources where we don't check asprintf() return code and assume that after error the function returns NULL pointer via the first argument. That's wrong, after error the content of