View Issue Details

IDProjectCategoryView StatusLast Update
0001629GNUnetNAT traversal librarypublic2011-06-10 11:11
Reportermrwiggles Assigned Tomilan  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionwon't fix 
Summary0001629: Memory issue with upnp.c
DescriptionThere is a line that causes some error messages in upnp.c, already marked by a // BADNESS! comment. It would seem that the line should be something like upnp->iface = GNUNET_strdup(name);

On some systems the upnp->iface points to random data at a later point in execution, specifically when UPNP_discover_ is called.
Additional Informationstatic int
process_if (void *cls,
            const char *name,
            int isDefault, const struct sockaddr *addr, socklen_t addrlen)
{
  struct GNUNET_NAT_UPNP_Handle *upnp = cls;
  if (addr && GNUNET_NAT_cmp_addr (upnp->addr, addr) == 0)
    {
      upnp->iface = name; // BADNESS!
      return GNUNET_SYSERR;
    }

  return GNUNET_OK;
}
TagsNo tags attached.

Activities

Christian Grothoff

2011-06-10 11:11

manager   ~0004352

Based on various discussions, I'm now pretty convinced that this entire upnp code will just go away. So no point in fixing this one.

Issue History

Date Modified Username Field Change
2010-12-07 14:41 mrwiggles New Issue
2010-12-07 14:41 mrwiggles Status new => assigned
2010-12-07 14:41 mrwiggles Assigned To => milan
2011-06-10 11:11 Christian Grothoff Note Added: 0004352
2011-06-10 11:11 Christian Grothoff Status assigned => closed
2011-06-10 11:11 Christian Grothoff Resolution open => won't fix