Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2021 09:48:44 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7f1fbb2020e2 - main - net/echoping: fix the segmentation fault at dns.c:111
Message-ID:  <202107130948.16D9miLu057226@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7f1fbb2020e286621e3107c2bf369f9973e99112

commit 7f1fbb2020e286621e3107c2bf369f9973e99112
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-07-13 09:47:48 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-07-13 09:48:01 +0000

    net/echoping: fix the segmentation fault at dns.c:111
    
    Add missing prototype for to_upper() which returns char *.  Without it,
    compiler assumed that it returns an int, which results in segmentation
    fault in init() at dns.c when trying process its result which had been
    cast to char *, albeit needlessly (this code does lots of bogus casts).
    
    PR:     220294
---
 net/echoping/Makefile               | 2 +-
 net/echoping/files/patch-echoping.h | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/net/echoping/Makefile b/net/echoping/Makefile
index f0edfac1fb28..b9c3e52f89d0 100644
--- a/net/echoping/Makefile
+++ b/net/echoping/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	echoping
 PORTVERSION=	6.0.2
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	net
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/net/echoping/files/patch-echoping.h b/net/echoping/files/patch-echoping.h
index 6614c1d56d6e..f411f7383f8e 100644
--- a/net/echoping/files/patch-echoping.h
+++ b/net/echoping/files/patch-echoping.h
@@ -43,3 +43,11 @@
  
  /* My functions */
  
+@@ -198,6 +186,7 @@ int TLS_readline ();
+ #endif
+ /* util.c */
+ char *random_string ();
++char *to_upper(char *);
+ void tvsub ();
+ void tvadd ();
+ void tvavg ();


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107130948.16D9miLu057226>