From c8adfc87dbf37ec4b430fbd74910f1126323f9f4 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Fri, 19 Aug 2005 17:34:05 +0000 Subject: . NUL terminate a string. Fixes a segmentation fault that shows up in the jdk13 port build. Brought to you by MALLOC_OPTIONS "A" and "J". . Bump PORTREVISION. Approved by: portmgr (kris) --- java/jbootstrap/Makefile | 1 + java/jbootstrap/files/patch-scsl-InvokerGen.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 java/jbootstrap/files/patch-scsl-InvokerGen.c (limited to 'java/jbootstrap') diff --git a/java/jbootstrap/Makefile b/java/jbootstrap/Makefile index cdb84bc0dd05..2894f8243e73 100644 --- a/java/jbootstrap/Makefile +++ b/java/jbootstrap/Makefile @@ -7,6 +7,7 @@ PORTNAME= jbootstrap PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= java MASTER_SITES= # http://www.eyesbeyond.com/freebsddom/java/jbootstrap.html diff --git a/java/jbootstrap/files/patch-scsl-InvokerGen.c b/java/jbootstrap/files/patch-scsl-InvokerGen.c new file mode 100644 index 000000000000..6e56b9570644 --- /dev/null +++ b/java/jbootstrap/files/patch-scsl-InvokerGen.c @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- scsl/InvokerGen.c.orig Fri Aug 19 11:04:45 2005 ++++ scsl/InvokerGen.c Fri Aug 19 11:04:03 2005 +@@ -475,7 +475,8 @@ + ", of sig='", si->sig, "'"); + } + } + t[j] = 0; ++ sb[pos] = NUL; + si->returnType = t[--j]; + si->binTerse = t; + si->terse = sb; -- cgit v1.2.3