Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf Fix length calculation



details:   https://anonhg.NetBSD.org/src/rev/b7b1b3224b79
branches:  trunk
changeset: 363725:b7b1b3224b79
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Thu Aug 09 20:30:26 2018 +0000

description:
Fix length calculation

diffstat:

 sys/fs/udf/udf_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dea9c02cfea2 -r b7b1b3224b79 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c     Thu Aug 09 18:17:39 2018 +0000
+++ b/sys/fs/udf/udf_subr.c     Thu Aug 09 20:30:26 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.142 2018/07/25 11:09:22 reinoud Exp $ */
+/* $NetBSD: udf_subr.c,v 1.143 2018/08/09 20:30:26 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.142 2018/07/25 11:09:22 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.143 2018/08/09 20:30:26 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -2623,7 +2623,7 @@
                return error;
 
        /* paranoia */
-       if (a_l != sizeof(*implext) -1 + udf_rw32(implext->iu_l) + sizeof(lvext)) {
+       if (a_l != sizeof(*implext) -2 + udf_rw32(implext->iu_l) + sizeof(lvext)) {
                DPRINTF(VOLUMES, ("VAT LVExtension size doesn't compute\n"));
                return EINVAL;
        }



Home | Main Index | Thread Index | Old Index