Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-11-21 Thread Tom Rini
On Sun, Sep 11, 2022 at 04:46:37PM +0800, Jit Loon Lim wrote: > From: Chin Liang See > > An old inffast.c optimization turns out to not be optimal anymore > with modern compilers, and furthermore was not compliant with the > C standard, for which decrementing a pointer before its allocated >

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-12 Thread Peter Robinson
> > > An old inffast.c optimization turns out to not be optimal anymore > > > with modern compilers, and furthermore was not compliant with the > > > C standard, for which decrementing a pointer before its allocated > > > memory is undefined. Per the recommendation of a security audit of > > > the

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-11 Thread Tom Rini
On Sun, Sep 11, 2022 at 04:16:12PM +0300, Sergei Antonov wrote: > On Sun, 11 Sept 2022 at 11:47, Jit Loon Lim wrote: > > > > From: Chin Liang See > > > > An old inffast.c optimization turns out to not be optimal anymore > > with modern compilers, and furthermore was not compliant with the > > C

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-11 Thread Sergei Antonov
On Sun, 11 Sept 2022 at 11:47, Jit Loon Lim wrote: > > From: Chin Liang See > > An old inffast.c optimization turns out to not be optimal anymore > with modern compilers, and furthermore was not compliant with the > C standard, for which decrementing a pointer before its allocated > memory is

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tom Rini
t; > Sent: Thursday, October 22, 2020 9:24 PM > > > > To: Tan, Ley Foon > > > > Cc: Ley Foon Tan ; ZY - u-boot > > > b...@lists.denx.de>; See, Chin Liang > > > > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > > >

RE: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tan, Ley Foon
> -Original Message- > From: Tom Rini > Sent: Friday, October 23, 2020 9:52 AM > To: Tan, Ley Foon > Cc: Ley Foon Tan ; ZY - u-boot b...@lists.denx.de>; See, Chin Liang > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > On Fri,

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tom Rini
> > Sent: Friday, October 16, 2020 8:37 PM > > > > To: Ley Foon Tan > > > > Cc: Tan, Ley Foon ; ZY - u-boot > > > b...@lists.denx.de>; See, Chin Liang > > > > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > > >

RE: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tan, Ley Foon
> -Original Message- > From: Tom Rini > Sent: Thursday, October 22, 2020 9:24 PM > To: Tan, Ley Foon > Cc: Ley Foon Tan ; ZY - u-boot b...@lists.denx.de>; See, Chin Liang > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > On Wed,

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tom Rini
Liang > > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > > > On Fri, Oct 16, 2020 at 04:40:00AM +0800, Ley Foon Tan wrote: > > > On Fri, Jul 17, 2020 at 9:29 PM Tom Rini wrote: > > > > > > > > On Wed,

RE: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-20 Thread Tan, Ley Foon
> -Original Message- > From: Tom Rini > Sent: Friday, October 16, 2020 8:37 PM > To: Ley Foon Tan > Cc: Tan, Ley Foon ; ZY - u-boot b...@lists.denx.de>; See, Chin Liang > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > On Fri,

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-16 Thread Tom Rini
On Fri, Oct 16, 2020 at 04:40:00AM +0800, Ley Foon Tan wrote: > On Fri, Jul 17, 2020 at 9:29 PM Tom Rini wrote: > > > > On Wed, Jun 24, 2020 at 04:34:03PM +0800, Ley Foon Tan wrote: > > > > > From: Chin Liang See > > > > > > This fixes CVE-2016-9841. Changes integrated from [1], with changes > >

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-16 Thread Ley Foon Tan
On Fri, Jul 17, 2020 at 9:29 PM Tom Rini wrote: > > On Wed, Jun 24, 2020 at 04:34:03PM +0800, Ley Foon Tan wrote: > > > From: Chin Liang See > > > > This fixes CVE-2016-9841. Changes integrated from [1], with changes > > make for Uboot code base. > > > > An old inffast.c optimization turns out

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-07-17 Thread Tom Rini
On Wed, Jun 24, 2020 at 04:34:03PM +0800, Ley Foon Tan wrote: > From: Chin Liang See > > This fixes CVE-2016-9841. Changes integrated from [1], with changes > make for Uboot code base. > > An old inffast.c optimization turns out to not be optimal anymore > with modern compilers, and