[PATCH] state: Fix "pack" returning freed data for DTB backend

2017-04-21 Thread Ian Abbott
`state_backend_format_dtb_pack()` passes a buffer containing state packed in flattened DTB format back to its caller via its `buf` parameter. It then frees the buffer before returning. This means the caller (`state_save()`) will be working on freed buffer contents before freeing the buffer a

Re: Linking issue with ld.bfd 2.28.0.20170307

2017-04-21 Thread Holger Freyther
> On 19. Apr 2017, at 21:30, Панов Андрей wrote: > > Hi! > > U-boot has fix for this issue: > http://git.denx.de/?p=u-boot.git;a=commit;h=e391b1e64b0bd65709a28a4764afe4f32d408243 > > With attached patch I was able to build barebox with new ld. Tested on imx6 > arch only.

Re: [PATCH] state: Fix "pack" returning freed data for DTB backend

2017-04-21 Thread Sascha Hauer
On Fri, Apr 21, 2017 at 10:53:25AM +0100, Ian Abbott wrote: > `state_backend_format_dtb_pack()` passes a buffer containing state > packed in flattened DTB format back to its caller via its `buf` > parameter. It then frees the buffer before returning. This means the > caller (`state_save()`) will

Re: cp: incorrect behaviour when copying recursively

2017-04-21 Thread Peter Mamonov
Hi Sasha, On Wed, Apr 19, 2017 at 10:07:23AM +0200, Sascha Hauer wrote: > Hi Peter, > > On Fri, Apr 14, 2017 at 01:10:51PM +0300, Peter Mamonov wrote: > > Hi, > > > > The "cp -r " command omits top directory, when the trailing "/" > > is > > present in the string. Here is the test case: >