Comment 6 for bug 891939

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

#5 0x00000000004066f7 in strcpy (__src=0x430ed0 "m(Maj7)(b5)", __dest=0x65dd00 <hor+105536> "")
    at /usr/include/x86_64-linux-gnu/bits/string3.h:104
No locals.
#6 HOR::HOR (this=0x6440c0 <hor>) at organ.C:633
        tapsg = {36, 33, 29, 27, 24, 21, 17, 15, 13, 16, 21, 24, 27, 31, 33, 36}
        sizesin = <optimised out>
        x_sin = <optimised out>
        tcombl = {10586, 12340, 6400, 13100, 8004, 7200, 5130, 9037, 12045, 11237, 9456, 7634, 5389, 8056, 10120, 11432}
        tcombr = {10518, 11340, 8450, 11100, 9644, 7560, 9536, 11507, 12600, 11111, 8056, 6048, 7690, 5978, 8845, 10056}

that's:

633 strcpy(Chord4[45].Nom,"m(Maj7)(b5)");

and Chord4 is:
struct Ch4

{
  char Nom[10];
  int type;
  int fund;
  int dist1;
  int dist2;
  int dist3;
} Chord4[50];

so trying to copy a 10char+nil into a 10char buffer - KABOOM!