Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_udf Fix endian bug in allocation extents processing
details: https://anonhg.NetBSD.org/src/rev/c7cbd4dbbd24
branches: trunk
changeset: 365776:c7cbd4dbbd24
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Apr 24 15:07:08 2022 +0000
description:
Fix endian bug in allocation extents processing
diffstat:
sbin/fsck_udf/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 957c2815023f -r c7cbd4dbbd24 sbin/fsck_udf/main.c
--- a/sbin/fsck_udf/main.c Sun Apr 24 13:38:57 2022 +0000
+++ b/sbin/fsck_udf/main.c Sun Apr 24 15:07:08 2022 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index