[Tremor] Segfault problems with tremor

Andrew de Quincey adq_dvb at lidskialf.net
Thu Nov 11 15:11:50 PST 2004


On Thursday 11 Nov 2004 19:41, Dimitry Andric wrote:
> On 2004-11-11 at 14:33:52 Andrew de Quincey wrote:
> > int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb){
>
> ===
>
> > Specifically,   the memset(vb,0,sizeof(*vb));
> > This is NOT wiping the supplied vorbis_block structure; it is only wiping
> > the first 4 bytes of it - the size of a pointer on the PPC
>
> Note that it says sizeof(*vb), not sizeof(vb), so your compiler must
> be buggy, since it should set the whole structure to 0.  In other
> words, sizeof(vorbis_block) is precisely the same value as
> sizeof(*vb).  You should be able to verify that by printing them on
> stdout.

Crap, you're right. Must be something else causing the corruption then. Sorry 
for the noise.


More information about the Tremor mailing list