Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs Fix endian bug in makefs for udf



details:   https://anonhg.NetBSD.org/src/rev/6345aa410f78
branches:  trunk
changeset: 365808:6345aa410f78
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Apr 26 13:26:30 2022 +0000

description:
Fix endian bug in makefs for udf

diffstat:

 usr.sbin/makefs/udf.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r bac3e0126afc -r 6345aa410f78 usr.sbin/makefs/udf.c
--- a/usr.sbin/makefs/udf.c     Tue Apr 26 05:29:15 2022 +0000
+++ b/usr.sbin/makefs/udf.c     Tue Apr 26 13:26:30 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf.c,v 1.25 2022/04/09 10:05:35 riastradh Exp $ */
+/* $NetBSD: udf.c,v 1.26 2022/04/26 13:26:30 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008, 2013, 2021, 2022 Reinoud Zandijk
@@ -30,7 +30,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: udf.c,v 1.25 2022/04/09 10:05:35 riastradh Exp $");
+__RCSID("$NetBSD: udf.c,v 1.26 2022/04/26 13:26:30 reinoud Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -505,7 +505,7 @@
        if (udf_rw16(dscr->tag.id) == TAGID_FENTRY) {
                fe          = &dscr->fe;
                data        = fe->data;
-               l_ea        = fe->l_ea;
+               l_ea        = udf_rw32(fe->l_ea);
                l_ad        = udf_rw32(fe->l_ad);
                icb         = &fe->icbtag;
                inf_len     = udf_rw64(fe->inf_len);
@@ -514,7 +514,7 @@
        } else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
                efe         = &dscr->efe;
                data        = efe->data;
-               l_ea        = efe->l_ea;
+               l_ea        = udf_rw32(efe->l_ea);
                l_ad        = udf_rw32(efe->l_ad);
                icb         = &efe->icbtag;
                inf_len     = udf_rw64(efe->inf_len);



Home | Main Index | Thread Index | Old Index