Date: Sun, 21 Aug 2005 15:14:57 +0930 (CST) From: Phil Kernick <philk@rotfl.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/85174: port www/squirm bugfix Message-ID: <20050821054457.CA32F45401@mail.rotfl.com.au> Resent-Message-ID: <200508210550.j7L5oEn9012047@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@pattosoft.com.au>, * USE_SYSTEM_STRING_FUNCS gives a ~10% speedup for >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050821054457.CA32F45401>