Re: [PATCH] common: state: check length

2019-05-22 Thread Sascha Hauer
On Tue, May 21, 2019 at 04:44:13PM +0200, Jan Remmet wrote: > if written_length is read from a partial written bucket it may be to > big and xmalloc will panic barebox. > > Check if the value is sane. > > Signed-off-by: Jan Remmet > --- > common/state/backend_bucket_direct.c | 4 > 1 file

[PATCH] common: state: check length

2019-05-21 Thread Jan Remmet
if written_length is read from a partial written bucket it may be to big and xmalloc will panic barebox. Check if the value is sane. Signed-off-by: Jan Remmet --- common/state/backend_bucket_direct.c | 4 1 file changed, 4 insertions(+) diff --git a/common/state/backend_bucket_direct.c b