From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 14 03:00:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 39149F98 for ; Thu, 14 Mar 2013 03:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8C9D8F for ; Thu, 14 Mar 2013 03:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2E300mS028221 for ; Thu, 14 Mar 2013 03:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2E300rA028219; Thu, 14 Mar 2013 03:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 14 Mar 2013 03:00:00 GMT Resent-Message-Id: <201303140300.r2E300rA028219@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pedro Giffuni Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 95D83EF3 for ; Thu, 14 Mar 2013 02:54:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6E6D7D38 for ; Thu, 14 Mar 2013 02:54:26 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2E2sQHB054464 for ; Thu, 14 Mar 2013 02:54:26 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2E2sQxE054463; Thu, 14 Mar 2013 02:54:26 GMT (envelope-from nobody) Message-Id: <201303140254.r2E2sQxE054463@red.freebsd.org> Date: Thu, 14 Mar 2013 02:54:26 GMT From: Pedro Giffuni To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/176935: Update emulators/x48 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 03:00:01 -0000 >Number: 176935 >Category: ports >Synopsis: Update emulators/x48 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 14 03:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Pedro Giffuni >Release: 9.1-STABLE >Organization: >Environment: FreeBSD pcbsd-3938 9.1-STABLE FreeBSD 9.1-STABLE #0 r248173: Mon Mar 11 15:53:49 COT 2013 pfg@pcbsd-3938:/usr/src/sys/amd64/compile/DELL amd64 >Description: Include a couple of fixes from upstream: - Fix timer bug causing bogus idle poweroffs while typing or immediately after turning on. - Call to strcpy causes buffer overflow. >How-To-Repeat: While here, note that berlios seems to be now part of sourceforge but port.sites.mk doesn't know about it. >Fix: Patch attached with submission follows: Index: x48/files/patch-src+debugger.c =================================================================== --- x48/files/patch-src+debugger.c (revision 0) +++ x48/files/patch-src+debugger.c (working copy) @@ -0,0 +1,13 @@ +--- src/debugger.c 2011/08/10 05:36:10 57 ++++ src/debugger.c 2011/08/10 05:38:58 58 +@@ -1933,8 +1933,8 @@ + free (old_line); + old_line = (char *) 0; + } +- cl = strcpy ((char *) malloc (strlen (rl)), rl); +- old_line = strcpy ((char *) malloc (strlen (rl)), rl); ++ cl = strdup (rl); ++ old_line = strdup (rl); + #ifdef HAVE_READLINE + add_history (rl); + #endif Index: x48/files/patch-src+timer.c =================================================================== --- x48/files/patch-src+timer.c (revision 0) +++ x48/files/patch-src+timer.c (working copy) @@ -0,0 +1,11 @@ +--- src/timer.c 2011/08/10 02:29:47 51 ++++ src/timer.c 2011/08/10 02:32:11 52 +@@ -509,7 +509,7 @@ + { + set_0_time += adj_time; + time_offset += adj_time; +- access_time - adj_time; ++ access_time -= adj_time; + + #ifdef DEBUG_TIMER_ADJUST + fprintf(stderr, "Time adjusted by "); >Release-Note: >Audit-Trail: >Unformatted: