Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Oddity in DSSI

Date2017-11-08 21:38
Fromjpff
Subject[Csnd-dev] Oddity in DSSI
In dssi4cs.c about line 300 there is something odd

      DSSIPlugin_->Descriptor =
          (LADSPA_Descriptor *) csound->Calloc(csound,
                                               sizeof(LADSPA_Descriptor));
      DSSIPlugin_->Descriptor =
          (LADSPA_Descriptor *) pfDescriptorFunction(PluginIndex);
      LDescriptor = (LADSPA_Descriptor *) DSSIPlugin_->Descriptor;

Space is allocated and immediately overwritten.  It looks the same in
csound5 final version.  Does anyone have an early cs5 version?  Or
better a fix?

Date2017-11-08 23:37
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Oddity in DSSI
surely the second statement should be a memcpy rather than an assignment.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 8 Nov 2017, at 21:38, jpff <jpff@CODEMIST.CO.UK> wrote:

In dssi4cs.c about line 300 there is something odd

     DSSIPlugin_->Descriptor =
         (LADSPA_Descriptor *) csound->Calloc(csound,
                                              sizeof(LADSPA_Descriptor));
     DSSIPlugin_->Descriptor =
         (LADSPA_Descriptor *) pfDescriptorFunction(PluginIndex);
     LDescriptor = (LADSPA_Descriptor *) DSSIPlugin_->Descriptor;

Space is allocated and immediately overwritten.  It looks the same in
csound5 final version.  Does anyone have an early cs5 version?  Or
better a fix?

==John ffitch