NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/42410 (Bug in makefs gives unhandled exception on MIPS Magnum R4000)



> cd9660.c:cd9660_compute_record_size() should round size variable.
> -current was already fixed on changes for RISC OS metadata support
> and netbsd-5 and netbsd-5-0 branches need a patch for this PR.

The following patch (from rev 1.25) should fix this PR. 
I'll send a pullup request later.

---
Index: usr.sbin/makefs/cd9660.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/makefs/cd9660.c,v
retrieving revision 1.22.2.1
diff -u -r1.22.2.1 cd9660.c
--- usr.sbin/makefs/cd9660.c    2 Feb 2009 03:32:34 -0000       1.22.2.1
+++ usr.sbin/makefs/cd9660.c    15 Dec 2009 18:17:18 -0000
@@ -1759,6 +1759,7 @@
 
        if (diskStructure.rock_ridge_enabled)
                size += node->susp_entry_size;
+       size += size & 1;
        return size;
 }
 
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index