Boost logo

Boost-Build :

Subject: Re: [Boost-build] [patch] wrong type in list_new()
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2012-08-17 03:29:11


   Hi.

> It seems list_new(engine/lists.c:115) calls BJAM_MALLOC with wrong type.
>
> head = BJAM_MALLOC( sizeof( LIST * ) + sizeof( OBJECT * ) );
>
> I think, should be followings.
>
> head = BJAM_MALLOC( sizeof( LIST ) + sizeof( OBJECT * ) );
>
> BTW, list_new is similar to list_alloc and should use it.

   Nice catch. Committed in revision [80064].

   http://svn.boost.org/trac/boost/changeset/80064

   Thanks for the patch!

   Best regards,
     Jurko Gospodnetić


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk