shibd segfaults when attempting to load a configuration that includes an <ApplicationOverride>

Description

If I add an <ApplicationDefaults> element to shibboleth2.xml (by uncommenting the example included with the distribution, for example), shibd segfaults while trying to load the configuration. The crash happens at line 1398 of shibsp/impl/XMLServiceProvider.cpp:

m_appmap[iapp->getId()]=iapp.release();

It looks like the LHS is attempting to dereference the pointer after the RHS has zeroed it out. This fixed it for me:

const char* id=iapp->getId();
m_appmap[id]=iapp.release();

Context diff is attached.

Environment

Solaris 10. Replicated on both Sparc and x86 architectures.

Attachments

1
  • 04 Jun 2008, 09:04 AM

Activity

Show:

Paul Riddle June 4, 2008 at 9:18 AM

Oops.. in the description, s/<ApplicationDefaults>/<ApplicationOverride>/

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created June 4, 2008 at 9:04 AM
Updated August 13, 2008 at 11:01 AM
Resolved June 4, 2008 at 11:09 AM

Flag notifications