ports/85174: port www/squirm bugfix
Phil Kernick
philk at rotfl.com.au
Sun Aug 21 05:50:16 UTC 2005
>Number: 85174
>Category: ports
>Synopsis: port www/squirm bugfix
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 21 05:50:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Phil Kernick
>Release: FreeBSD 5.4-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD catbert.rotfl.com.au 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Mon Aug 15 13:12:48 CST 2005 root at catbert.rotfl.com.au:/usr/src/sys/i386/compile/CATBERT i386
>Description:
Port www/squirm will core dump due to trying to execute strdup(0)
This does not cause an error on Linux or FreeBSD4.
>How-To-Repeat:
Install and use the port. Notice that /var/log/messages has a lot
of lines like this:
Aug 21 14:42:40 catbert kernel: pid 34192 (squirm), uid 81: exited on signal 11 (core dumped)
>Fix:
Apply this patch to the port:
--- squirm.c.orig Sun Aug 21 15:09:12 2005
+++ squirm.c Sun Aug 21 15:10:06 2005
@@ -44,6 +44,8 @@
#include<sys/signal.h>
#include<ctype.h>
+#define strdup(s) ((s) ? strdup(s) : 0)
+
/*
* according to Jason Patterson <jason at pattosoft.com.au>,
* USE_SYSTEM_STRING_FUNCS gives a ~10% speedup for
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list