Menu

#2332 gather: segv parsing xml if domain becomes undefined

Stability
pending-fixed
5
2012-02-02
2012-02-02
No

If a previously defined domain becomes undefined prior to calling virDomainGetXMLDesc a NULL pointer is returned and then passed to strstr on entry to the parsing logic on the faulty assumption that xml data will always be returned. Need a NULL check prior to entering the parsing logic.

Discussion

  • Tyrel Datwyler

    Tyrel Datwyler - 2012-02-02
    • summary: gather: segv parsing xml if domain becoms undefined --> gather: segv parsing xml if domain becomes undefined
     
  • Tyrel Datwyler

    Tyrel Datwyler - 2012-02-02

    Adds NULL test to parsing logic entry point

     
  • Tyrel Datwyler

    Tyrel Datwyler - 2012-02-02
    • status: open --> pending-fixed
     
  • Tyrel Datwyler

    Tyrel Datwyler - 2012-02-02

    Patch attached

    Committed to CVS Head

     

Log in to post a comment.