mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix a core dump in conjunction with -T.
PR: ports/16697 Submitted by: Udo Schweigert <ust@cert.siemens.de>
This commit is contained in:
parent
2ebfa5d437
commit
226171ceed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25779
13
sysutils/mkisofs-devel/files/patch-bb
Normal file
13
sysutils/mkisofs-devel/files/patch-bb
Normal file
@ -0,0 +1,13 @@
|
||||
--- mkisofs/tree.c.orig Mon Jan 10 23:17:25 2000
|
||||
+++ mkisofs/tree.c Sun Feb 13 21:44:15 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)
|
13
sysutils/mkisofs/files/patch-bb
Normal file
13
sysutils/mkisofs/files/patch-bb
Normal file
@ -0,0 +1,13 @@
|
||||
--- mkisofs/tree.c.orig Mon Jan 10 23:17:25 2000
|
||||
+++ mkisofs/tree.c Sun Feb 13 21:44:15 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)
|
Loading…
Reference in New Issue
Block a user