Flightgear bombs when JSB outputs data in CSV format with MSVC 6 (latest
change to c172.xml r1.38).
It appears that the coefficient kCLge 'Change_in_lift_due_to_ground_effect'
has a value derived from FGPosition::hoverbmac which is unitialized.
The segmentation violation is in FGCoefficient::GetCoefficientValues where
sprintf overflows the 10 bytes long buffer with a value SD of more than 60
digits!

A quick n' dirty fix is to replace

  sprintf(buffer,"%9.6f",SD);
with
  sprintf(buffer,"%9.6g",SD);

but I think that every member variables should have a default value set in
class constructor

-Fred



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to