Re: Segfault in HTCP CLR request on 64-bit

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Fri, 02 Oct 2009 22:42:41 +0200

fre 2009-10-02 klockan 11:48 -0400 skrev Jason Noble:
> Sorry, I went to bugzilla before reading all the e-mails here. As I
> commented on the bug report states, there is nothing fishy going on.
> While strlen(NULL) will always segfault, htcpBuildCountstr() wraps the
> strlen() call with a check for a NULL pointer:
>
> 260 if (s)
> 261 len = strlen(s);
> 262 else
> 263 len = 0;

Great. Then the memset is sufficient. Case closed.

Regards
Henrik
Received on Fri Oct 02 2009 - 20:42:48 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 03 2009 - 12:00:04 MDT