View Issue Details

IDProjectCategoryView StatusLast Update
0001629GNUnetNAT traversal librarypublic2011-06-10 09:11
Reportermrwiggles Assigned Tomilan Due Date
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 09: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 ModifiedUsernameFieldChange
2010-12-07 13:41mrwigglesNew Issue
2010-12-07 13:41mrwigglesStatusnew => assigned
2010-12-07 13:41mrwigglesAssigned To => milan
2011-06-10 09:11Christian GrothoffNote Added: 0004352
2011-06-10 09:11Christian GrothoffStatusassigned => closed
2011-06-10 09:11Christian GrothoffResolutionopen => won't fix