crash-pipe: Fix write the coredump to the file 37/180537/1 accepted/tizen/unified/20180614.150754 submit/tizen/20180613.110142
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 30 May 2018 11:33:20 +0000 (13:33 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 30 May 2018 12:00:37 +0000 (14:00 +0200)
commit04d9badae6e14ed23b0421224e87ea609f2a9182
tree069df0c7227b859ccfee7599a91d31906ce3c286
parent6490e79cc9a0ae99f5bca5534f204343dcc733ce
crash-pipe: Fix write the coredump to the file

splice returns EINVAL if (loff_t)(len + out.pos) is negative number.
This was the case on aarch64 and x86_64.

Change-Id: Ic52d08efce3fca555a83319c8161c3656b553cc1
src/crash-pipe/crash-pipe.c