[Flightgear-devel] Simgear Bug

2010-07-29 Thread Chris Baines
Hello,

I am trying to build simgear on Debian, but when I run make check in
the simgear/math folder I get the following output included below. Is
there something I can tweak to fix this bug? 

Thanks,

Chris

make  SGMathTest SGGeometryTest
make[1]: Entering directory
`/home/chris/Packaging/Flightgear/SimgearDevPackage/Test
Build/SimGear-2.0.0/simgear/math'
g++ -DHAVE_CONFIG_H -I. -I../../simgear -I../..-g -O2 -D_REENTRANT
-MT SGMathTest.o -MD -MP -MF .deps/SGMathTest.Tpo -c -o SGMathTest.o
SGMathTest.cxx
SGMathTest.cxx: In function ‘bool sgInterfaceTest()’:
SGMathTest.cxx:259: error: ‘struct SGVec3f’ has no member named ‘sg’
SGMathTest.cxx:260: error: ‘struct SGVec3f’ has no member named ‘sg’
SGMathTest.cxx:268: error: ‘struct SGVec4f’ has no member named ‘sg’
SGMathTest.cxx:269: error: ‘struct SGVec4f’ has no member named ‘sg’
SGMathTest.cxx:277: error: ‘struct SGQuatf’ has no member named ‘sg’
SGMathTest.cxx:278: error: ‘struct SGQuatf’ has no member named ‘sg’
SGMathTest.cxx: In function ‘bool sgdInterfaceTest()’:
SGMathTest.cxx:308: error: ‘struct SGVec3d’ has no member named ‘sg’
SGMathTest.cxx:309: error: ‘struct SGVec3d’ has no member named ‘sg’
SGMathTest.cxx:317: error: ‘struct SGVec4d’ has no member named ‘sg’
SGMathTest.cxx:318: error: ‘struct SGVec4d’ has no member named ‘sg’
SGMathTest.cxx:326: error: ‘struct SGQuatd’ has no member named ‘sg’
SGMathTest.cxx:327: error: ‘struct SGQuatd’ has no member named ‘sg’
make[1]: *** [SGMathTest.o] Error 1
make[1]: Leaving directory
`/home/chris/Packaging/Flightgear/SimgearDevPackage/Test
Build/SimGear-2.0.0/simgear/math'
make: *** [check-am] Error 2




--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear Bug

2010-07-29 Thread James Turner

On 29 Jul 2010, at 10:37, Chris Baines wrote:

 I am trying to build simgear on Debian, but when I run make check in
 the simgear/math folder I get the following output included below. Is
 there something I can tweak to fix this bug? 

'make check' works in latest Git source, though I wasn't aware anything had 
changed in this area since 2.0 - slightly odd. I'd suggest you take a look at 
the git logs for simgear/math since 2.0.0, and if you can't find an obvious 
smoking gun, let me know.

James



--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Expat CVE-2009-3720 and CVE-2009-3560

2010-07-29 Thread Chris Baines
Looking in to this further, I think the file in question is xmlparse.c .

Looking first at the official expat version in their cvs repo, this
vulnerability has been fixed (see revision 1.164 to 1.166
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.164view=log
 ). 

Looking at the changelog for this file in the simgear git, it was first
added in 2000 and cleaned up slightly in 2002. I can't find the
offending piece of code in the simgear version probably because it is
just so old and thus very different to the current official version.
This also means that I can't patch it directly without someones
guidance. Does anyone know if this bug applies to the version of
xmlparse.c included in simgear?

Chris

On Thu, 2010-07-29 at 18:51 +0100, Chris Baines wrote:
 Hello,
 
 I am in the process of hopefully updating the simgear package for
 Debian. Simgear as far as i am aware includes a copy of Expat, I am
 trying to decide if this bug should be closed in the 2.0.0 release or
 not http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560937 .
 
  Does anyone know if the vulnerabilities corresponding to the CVE ID's
 CVE-2009-3720
 (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3720 ) and
 CVE-2009-3560
 (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3720 ) have been
 fixed in simgear 2.0.0?
 
 Thanks,
 
 Chris



--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Expat CVE-2009-3720 and CVE-2009-3560

2010-07-29 Thread Csaba Halász
On Thu, Jul 29, 2010 at 9:24 PM, Chris Baines cbain...@gmail.com wrote:
 Looking in to this further, I think the file in question is xmlparse.c .

I think xmltok.c

 I can't find the
 offending piece of code in the simgear version probably because it is
 just so old and thus very different to the current official version.
 This also means that I can't patch it directly without someones
 guidance. Does anyone know if this bug applies to the version of
 xmlparse.c included in simgear?

Yes, our xml parser seems to have similar vulnerability. I doubt it is
a terribly important issue, though.

Anyway, at least one of the problematic locations is the utf8_toUtf16
function. Notice how it uses equality test when checking for
end-of-buffer, while in the loop body it sometimes increments the
pointer by more than one, thus possibly failing to detect
end-of-buffer. It also merrily reads from[1] and from[2] without
ensuring those fall inside the buffer.

-- 
Csaba/Jester

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Depreciating ATCDCL (Was: Crashes on reset/re-position)

2010-07-29 Thread Dave
Erik Hofman wrote:
 On Wed, 2010-07-28 at 09:57 +0200, Erik Hofman wrote:
   
 While this probably is a step in the right direction it also means ATC
 chatter will be missing (for now).
 

 Ehm, ATIS that is.

 Erik

   

Yes, I hadn't realised that when I made the suggestion, I mistakenly 
thought we were only discussing the attempt at intelligent AI traffic.

It would be a shame to lose the ATIS, especially now it's working again 
following the sound changes.  What I propose to do is to remove all the 
AI traffic stuff from ATCDCL, leaving just the ATC code, and then 
re-enable it at compile time by default.  The AI traffic is where all 
the crashes originate from, and this would leave the frequency lookup 
and ATIS working until they are ported to the new ATC system.  I've 
discovered that my Wife's laptop has a 3D card, so I should be able to 
remove the AI stuff and test it.

The only user-visible feature that would be lost would be the messages 
to/from ATC and the AI traffic.  That however is unavoidable given that 
that AI system is realistically unmaintainable.

Cheers - Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] FlightGear bug lists

2010-07-29 Thread George Patterson
On Fri, Jul 30, 2010 at 12:20 AM, Samuel Cantrell
samuelcantr...@gmail.com wrote:
 Hello,
 Are there any bug lists listing open bugs that I could take a stab at fixing?
 Thanks.
 Sam

Hi Sam,

There is a default bug tracker that could be a good place to start at.

http://code.google.com/p/flightgear-bugs/issues/list

I would suggest that you keep in touch with the this devel list in
case someone else is considering working on the same issue.

Regards


George Patterson

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI and Traffic Manager

2010-07-29 Thread John Wojnaroski
Hi Durk

Are departure/arrival times specified in GMT or local times?

Created some UAL flights from KSFO to KDFW and KPHX with departure times
of 12:10 and 12:15 once a day.  started FG with a time of noon, a number
of AI aircraft were created (repeat time was WEEK) at the gates but
after that nothing happened, no pushback, taxi, departure...  hit the
time warp button and went through a couple of days and still nothing
moved. 

FLIGHT United0908 IFR   0123456 23:05   KORD06:10   EHAM   360
777UAL
FLIGHT United0909 IFR   0123456 09:15   EHAM18:00   KORD   360
777UAL
FLIGHT United946  IFR   0123456  13:17   KIAD05:00   EHAM   360
767UAL
FLIGHT United947  IFR   0123456  10:25   EHAM19:08   KIAD   360
767UAL
FLIGHT United1000 IFR   0123456  12:15   KSFO23:55   KDFW   370
777UAL
FLIGHT United0725 IFR   0123456  12:10   KSFO22:50   KPHX   360
767UAL


Used the scripting tools you called out in the wiki site to create xml
UAL.xml,  ai and traffic-manager were enabled and proportion value was
set to five.

Do I need to schedule a flight from the aircraft's home field to KSFO to
arrive prior to departure time so as to position and aircraft at KSFO
that can then be assigned to the schedule or create some AI models with
a home field of KSFO?

Any suggestions where to look?

John

On Wed, 2010-07-28 at 07:18 +0200, Durk Talsma wrote:

 
 Thanks for the comments by the way, I hope to add a more conceptual 
 introduction, as written above to the wiki page. Please let me know if you 
 have any further questions.
 



--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel