Module Name:    src
Committed By:   reinoud
Date:           Sun Apr 24 15:07:08 UTC 2022

Modified Files:
        src/sbin/fsck_udf: main.c

Log Message:
Fix endian bug in allocation extents processing


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sbin/fsck_udf/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/fsck_udf/main.c
diff -u src/sbin/fsck_udf/main.c:1.10 src/sbin/fsck_udf/main.c:1.11
--- src/sbin/fsck_udf/main.c:1.10	Fri Apr 22 21:07:56 2022
+++ src/sbin/fsck_udf/main.c	Sun Apr 24 15:07:08 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.10 2022/04/22 21:07:56 reinoud Exp $	*/
+/*	$NetBSD: main.c,v 1.11 2022/04/24 15:07:08 reinoud Exp $	*/
 
 /*
  * Copyright (c) 2022 Reinoud Zandijk
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.10 2022/04/22 21:07:56 reinoud Exp $");
+__RCSID("$NetBSD: main.c,v 1.11 2022/04/24 15:07:08 reinoud Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -1088,7 +1088,7 @@ udf_process_file(union dscrptr *dscrptr,
 					lb_num, vpart_num,
 					1);
 			/* TODO check for prev_entry? */
-			l_ad = ext->l_ad;
+			l_ad = udf_rw32(ext->l_ad);
 			bpos = ext->data;
 			if (ad_type == UDF_ICB_SHORT_ALLOC)
 				short_adp = (struct short_ad *) bpos;

Reply via email to