[sword-devel] Bug in CVS

Joachim Ansorg sword-devel@crosswire.org
Wed, 20 Mar 2002 13:42:51 +0100


--------------Boundary-00=_FBV9AWZDXCWCPPB3DF8Z
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Subject: 

Troy,
=09I have to report  new bug which was probably introduced in the last co=
mmit.=20
It's related to option management of SWMgr.

See the attached test program where SWMgr::getGlobalOptionValues crashes.=
 It=20
also crashes if you use other functions related to options (e.g.=20
setGlobalOptionValue).

Thanks,
Joachim
--------------Boundary-00=_FBV9AWZDXCWCPPB3DF8Z
Content-Type: text/x-c;
  charset="iso-8859-15";
  name="swmgr_test.cpp"
Content-Transfer-Encoding: base64
Content-Description: testprogram
Content-Disposition: attachment; filename="swmgr_test.cpp"

I2luY2x1ZGUgPHN3bWdyLmg+CgppbnQgbWFpbiAoaW50IGFyZ2MsIGNoYXIqIGFyZ3ZbXSkgewog
ICAgICAgIFNXTWdyIG1ncjsKCi8vdGhlIGNvbW1lbnRlZCBvdXQgY29kZSB3b3JrcwovKiAKICAg
ICAgICBPcHRpb25zTGlzdCBnbG9iYWxPcHRpb25zID0gbWdyLmdldEdsb2JhbE9wdGlvbnMoKTsK
ICAgICAgICBmb3IgKE9wdGlvbnNMaXN0OjppdGVyYXRvciBpdCA9IGdsb2JhbE9wdGlvbnMuYmVn
aW4oKTsgaXQgIT0gZ2xvYmFsT3B0aW9ucy5lbmQoKTsgaXQrKykgewogICAgICAgICAgICAgICAg
Y291dCA8PCAqaXQgPDwgZW5kbDsKCiAgICAgICAgICAgICAgICBPcHRpb25zTGlzdCB2YWx1ZXMg
PSBtZ3IuZ2V0R2xvYmFsT3B0aW9uVmFsdWVzKCgqaXQpLmNfc3RyKCkpOwogICAgICAgICAgICAg
ICAgZm9yIChPcHRpb25zTGlzdDo6aXRlcmF0b3IgaXQyID0gdmFsdWVzLmJlZ2luKCk7IGl0MiAh
PSB2YWx1ZXMuZW5kKCk7IGl0MisrKSB7CiAgICAgICA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