]> code.ossystems Code Review - openembedded-core.git/commit
systemd: update a uclibc specific patch to avoid segment fault error
authorChen Qi <Qi.Chen@windriver.com>
Wed, 4 Jun 2014 09:47:25 +0000 (17:47 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Jun 2014 08:20:44 +0000 (09:20 +0100)
commitc69816d2bf84369ba578bf9d92e01c9d91351a64
tree5a9b76e6055bfc52fb1293ab7dd537d366e9a8a9
parentb751144ba467b1358af2db8a4c30b8e0644cffa5
systemd: update a uclibc specific patch to avoid segment fault error

The alloca() function allocates space in the stack frame of the caller,
so using alloca(new_size - old_size) would possibly crash the stack,
causing a segment fault error.

This patch fixes the above problem by avoiding using this function in
journal-file.c.

[YOCTO #6201]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch