[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk: free_wstr() invalid write
From: |
Dmitry V. Levin |
Subject: |
Re: gawk: free_wstr() invalid write |
Date: |
Mon, 18 Dec 2006 19:34:56 +0300 |
On Mon, Dec 18, 2006 at 11:03:30AM -0500, Andrew J. Schorr wrote:
> On Mon, Dec 18, 2006 at 06:27:52PM +0300, Dmitry V. Levin wrote:
> > free_wstr() zeroes wstptr and wstlen pointers even if WSTRCUR flag is not
> > set, which is wrong and may lead to invalid write, similar to invalid free
> > in str2wstr().
> >
> > Proposed fix is attached.
>
> FYI, your str2str and free_wstr patches seem correct to me,
> and they resemble the code in the xgawk source tree:
>
> http://sourceforge.net/projects/xmlgawk/
Why these fixes are not in gawk-stable tree yet? :)
--
ldv
pgpVu749Df1XI.pgp
Description: PGP signature