- add a patch to fix a use-after-free

- bump portrevision

Submitted by:	pilot <pilot@monkey.org> (upstream) (by mail)
Obtained from:	OpenBSD port
This commit is contained in:
Baptiste Daroussin 2011-04-29 04:53:50 +00:00
parent 5f7e53be98
commit fae396e41a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273313
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= arirang
PORTVERSION= 2.02
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security www
MASTER_SITES= http://monkey.org/~pilot/arirang/

View File

@ -0,0 +1,22 @@
--- ariruby.c.orig Fri Apr 29 09:23:11 2011
+++ ariruby.c Fri Apr 29 09:24:14 2011
@@ -519,9 +519,6 @@
if (sendbuf != NULL)
free(sendbuf);
- if (headbuf != NULL)
- free(headbuf);
-
if (nb == -1 || nb == -2) {
#if !(defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__))
alarm(0);
@@ -543,6 +540,9 @@
if (!pflags)
exit(0);
}
+
+ if (headbuf != NULL)
+ free(headbuf);
if (sslflags)
ssl_free(ctx, ssl);