[PATCH] Resolve buffer overflow in libm-test-inc check_complex()

Joseph S. Myers joseph@codesourcery.com
Thu Nov 15 16:47:00 GMT 2012


On Thu, 15 Nov 2012, Marcus Shawcroft wrote:

> On 14 November 2012 23:11, Joseph S. Myers <joseph@codesourcery.com> wrote:
> 
> > When using asprintf, please check the return value and produce an
> > appropriate error if it is -1 (maybe just abort the test, in this case).
> > (If the return value is -1, the value of the pointer asprintf sets is
> > undefined, so you do need to check the return value before using that
> > pointer.)
> 
> 
> Revised version attached.

This version is OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list