shibd segfaults when attempting to load a configuration that includes an <ApplicationOverride>
Basics
Technical
Logistics
Basics
Technical
Logistics
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:
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.