From owner-svn-ports-all@freebsd.org Sat Aug 11 23:32:36 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97EA91055D7A; Sat, 11 Aug 2018 23:32:36 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4689895599; Sat, 11 Aug 2018 23:32:36 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 27EAD1E102; Sat, 11 Aug 2018 23:32:36 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7BNWafQ041550; Sat, 11 Aug 2018 23:32:36 GMT (envelope-from shurd@FreeBSD.org) Received: (from shurd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7BNWZfK041548; Sat, 11 Aug 2018 23:32:35 GMT (envelope-from shurd@FreeBSD.org) Message-Id: <201808112332.w7BNWZfK041548@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: shurd set sender to shurd@FreeBSD.org using -f From: Stephen Hurd Date: Sat, 11 Aug 2018 23:32:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476948 - in head/comms/fldigi: . files X-SVN-Group: ports-head X-SVN-Commit-Author: shurd X-SVN-Commit-Paths: in head/comms/fldigi: . files X-SVN-Commit-Revision: 476948 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 23:32:36 -0000 Author: shurd Date: Sat Aug 11 23:32:35 2018 New Revision: 476948 URL: https://svnweb.freebsd.org/changeset/ports/476948 Log: Add patch to fix potential crash on startup Raster::resize() was being called with a negative width or height due to bad state being stored in the config. This resulted in fldigi crashing before the UI was displayed. This patch works around the problem and has been submitted upstream. Added: head/comms/fldigi/files/patch-src_waterfall_raster.cxx (contents, props changed) Modified: head/comms/fldigi/Makefile Modified: head/comms/fldigi/Makefile ============================================================================== --- head/comms/fldigi/Makefile Sat Aug 11 22:28:24 2018 (r476947) +++ head/comms/fldigi/Makefile Sat Aug 11 23:32:35 2018 (r476948) @@ -2,7 +2,7 @@ PORTNAME= fldigi PORTVERSION= 4.0.17 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= comms hamradio MASTER_SITES= SF/${PORTNAME}/${PORTNAME} Added: head/comms/fldigi/files/patch-src_waterfall_raster.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/fldigi/files/patch-src_waterfall_raster.cxx Sat Aug 11 23:32:35 2018 (r476948) @@ -0,0 +1,13 @@ +--- src/waterfall/raster.cxx.orig 2018-08-11 23:26:43 UTC ++++ src/waterfall/raster.cxx +@@ -169,6 +169,10 @@ void Raster::resize(int x, int y, int w, + while ((Ndest * rhs) < Hdest) Ndest++; + Ndest--; + ++ if (Wdest < 0) ++ Wdest = 0; ++ if (Hdest < 0) ++ Hdest = 0; + unsigned char *tempbuf = new unsigned char [Wdest * Hdest]; + unsigned char *oldbuf = vidbuf; +