Menu

#2457 Crash in getInstance when instance has NULL properties

Stability
pending-fixed
sfcc (103)
5
2012-05-29
2012-05-22
No

If a provider returns an Instance with NULL properties (a key property in this specific case), calling getInstance crashes with a segfault.

Looking at backend/cimxml/instance.c and backend/cimxml/property.c it seems as if the CIMValue structure is _not_ initialized (== contains random data) if the CIMData.state is CMPI_nullValue.
However, __clone in backend/cimxml/property.c calls native_clone_CMPIValue() _without_ taking the state into account. This leads to a segfault due to random data in prop->value.

Discussion

  • Klaus Kämpf

    Klaus Kämpf - 2012-05-22

    Proposed patch

     
  • Chris Buccella

    Chris Buccella - 2012-05-29

    committed to git master

     
  • Chris Buccella

    Chris Buccella - 2012-05-29
    • status: open --> pending-fixed
     

Log in to post a comment.