Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2000 11:44:44 GMT
From:      Udo Schweigert <ust@cert.siemens.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16697: Fix a problem in port sysutils/mkisofs
Message-ID:  <200002131144.LAA25861@alaska.cert.siemens.de>

next in thread | raw e-mail | index | archive | help

>Number:         16697
>Category:       ports
>Synopsis:       Fix a problem in port sysutils/mkisofs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 13 03:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Udo Schweigert
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Siemens AG, ZT IK 3
>Environment:

FreeBSD 3.4-RELEASE

>Description:

When using mkisofs with -T (generate TRANS.TBL) I got a core dump.
This occured because for one directory I had tablesize%SECTORSIZE==0.

>How-To-Repeat:


>Fix:
	
Increase the malloc by 1, as stated in this diff:

diff -ruN mkisofs.orig/patches/patch-bb mkisofs/patches/patch-bb
--- mkisofs.orig/patches/patch-bb	Thu Jan  1 01:00:00 1970
+++ mkisofs/patches/patch-bb	Sun Feb 13 12:29:07 2000
@@ -0,0 +1,13 @@
+--- mkisofs/tree.c.orig	Mon Jan 10 23:17:25 2000
++++ mkisofs/tree.c	Sun Feb 13 12:27:28 2000
+@@ -446,8 +446,8 @@
+       	table->de_flags    |= INHIBIT_JOLIET_ENTRY;
+ /*      table->name = strdup("<translation table>");*/
+       table->name = strdup(trans_tbl);
+-      table->table = (char *) e_malloc(ROUND_UP(tablesize));
+-      memset(table->table, 0, ROUND_UP(tablesize));
++      table->table = (char *) e_malloc(ROUND_UP(tablesize+1));
++      memset(table->table, 0, ROUND_UP(tablesize+1));
+       iso9660_file_length  (trans_tbl, table, 0);
+       
+       if(use_RockRidge)

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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