[cfe-dev] GSL 'make check' failure

Matthijs Kooijman matthijs at stdin.nl
Mon Jul 7 07:31:43 PDT 2008


> For (i=0;i<N;i++)
> 
> {
> 
>   v->data[2*i] = ATOMIC(N - i);
> 
>   v->data[2*i + 1] = ATOMIC(10 * (N - i) + 1);
> 
> };
> 
>  
> 
> fwrite().
> 
> fclose().
> 
> free().
I've seen similar free errors after doing out-of-bounds write. Are you sure
that data is allocated long enough (2N elements)?

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080707/33637639/attachment.sig>


More information about the cfe-dev mailing list