1
0
Fork 0
flightgear/src/ATC
Florent Rougon 9a64150d57 Fix crash in src/ATC/trafficcontrol.cxx (invalid iterator dereferenced)
When the test:

  if (i == activeTraffic.end() || (activeTraffic.empty()))

was true, the iterator named 'current' was uninitialized and later
dereferenced.

Fix:
  - when the previously-mentioned test is true, return;
  - initialize 'current' only when it is really needed (i.e., later and
    after the test), and since we don't need it for iterating, make it
    an FGTrafficRecord&.
2017-05-10 16:54:55 +02:00
..
atc_mgr.cxx Make TrafficRecord own its AIAircraft. 2016-01-04 13:34:39 -06:00
atc_mgr.hxx Make TrafficRecord own its AIAircraft. 2016-01-04 13:34:39 -06:00
atcdialog.cxx Adapt includes according to relocation of SimGear's iostreams-related files 2017-02-12 21:30:51 +01:00
atcdialog.hxx Get the ATC frequency dialogs working again for the 2.6 release. 2011-12-27 22:55:52 +00:00
ATISEncoder.cxx Startup-tip system. 2017-03-03 23:21:18 +02:00
ATISEncoder.hxx Startup-tip system. 2017-03-03 23:21:18 +02:00
CMakeLists.txt Split GroundNetwork class down the middle 2015-12-10 15:53:05 -06:00
CommStation.cxx Missing config.h includes 2017-03-25 15:34:10 +00:00
CommStation.hxx Clean up/simplify NasalPositioned_cppbind 2013-03-06 23:21:49 +01:00
CurrentWeatherATISInformationProvider.cxx Fix incorrect QNH in spoken ATIS when using live weather fetch 2016-04-26 10:52:29 +01:00
CurrentWeatherATISInformationProvider.hxx Fix incorrect QNH in spoken ATIS when using live weather fetch 2016-04-26 10:52:29 +01:00
GroundController.cxx Enforce separation of ground-net and dynamics. 2016-11-13 14:05:20 +00:00
GroundController.hxx Fix crash disabling AI traffic at runtime. 2016-10-20 22:52:27 +01:00
MetarPropertiesATISInformationProvider.cxx Fix incorrect QNH in spoken ATIS when using live weather fetch 2016-04-26 10:52:29 +01:00
MetarPropertiesATISInformationProvider.hxx Fix incorrect QNH in spoken ATIS when using live weather fetch 2016-04-26 10:52:29 +01:00
trafficcontrol.cxx Fix crash in src/ATC/trafficcontrol.cxx (invalid iterator dereferenced) 2017-05-10 16:54:55 +02:00
trafficcontrol.hxx Fix crash disabling AI traffic at runtime. 2016-10-20 22:52:27 +01:00