Opened 7 years ago

Closed 4 years ago

#774 closed defect/bug (Incomplete/Missing infos)

NULL Ptr Crashes when Loading Config (with some fixes)

Reported by: jwernerny -2- Owned by: KaZeR
Priority: critical Milestone:
Component: core Version: git master
Severity: Keywords:
Cc:

Description

I updated my svn working copy and tried to run it and found several places where NULL pointers were being dereferenced when the wordexp (in particular file_wordexp_new(..)) failed. This was causing crashes. I am including some brute force patches.

[The failure of file_wordexp_new(..) will be opened as another issue.]

The files affected are

  • navit/xmlconfig.c (revision 4155)
  • navit/map/textfile/textfile.c (revision 4155)
  • navit/map/binfile/binfile.c (revision 4155)

Attachments (1)

NULL-ptr-2011-02-14.diffs (3.2 KB) - added by jwernerny -2- 7 years ago.
Patch for NULL Ptr when opening config

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by jwernerny -2-

Patch for NULL Ptr when opening config

comment:1 Changed 4 years ago by usul

  • Resolution set to Incomplete/Missing infos
  • Status changed from new to closed

Was this patch already applied? Under which circumstances will the exceptions occure and under which build/OS?

Note: See TracTickets for help on using tickets.