Menu

#15 ixml parser colapsed on empty args (arg="")

closed
None
5
2006-05-19
2006-03-15
No

When in xml is empty argument, all versions of libupnp
(upnpsdk too) collapses and ends with SIGSEGV. I don't
know, if it is valid xml or not, but Micorosoft's ICS
sends this, so we need to handle it.

this can be solved with this patch to ixml/src/ixmplarser.c

2343a2344,2346
> }else { //empty atribute like a="", this is
accessed
on other places, so there must be something
> node->nodeValue = malloc(sizeof(char));
> *(node->nodeValue) = '\0';
2345c2348
< // if attribute doesn't have value, like
a="", fine
---
>

Discussion

  • Anonymous

    Anonymous - 2006-05-18

    Logged In: YES
    user_id=1404737

    Its not clear where that has to be added. Please submit a
    patch or some more detailed information to the successor
    project "Portable UPnP" at http://pupnp.sf.net

     
  • Anonymous

    Anonymous - 2006-05-18
    • assigned_to: nobody --> virtualreality
    • status: open --> pending
     
  • Anonymous

    Anonymous - 2006-05-18

    Logged In: YES
    user_id=1477005

    the same diff in patch file

     
  • Anonymous

    Anonymous - 2006-05-18

    patch file

     
  • Anonymous

    Anonymous - 2006-05-18
    • status: pending --> open
     
  • Anonymous

    Anonymous - 2006-05-19

    Logged In: YES
    user_id=1404737

    Added to portable libupnp, please see http://pupnp.sf.net

     
  • Anonymous

    Anonymous - 2006-05-19
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.