Date: Sat, 17 Dec 2005 02:16:06 +0100 From: "Björn König" <bkoenig@cs.tu-berlin.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/90521: UDF driver might calculate a wrong descriptor tag checksum Message-ID: <20051217011606.301675089C@eurystheus.local> Resent-Message-ID: <200512170120.jBH1K3pl001563@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 90521 >Category: kern >Synopsis: UDF driver might calculate a wrong descriptor tag checksum >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 17 01:20:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Björn König >Release: FreeBSD 6.0-RELEASE i386 >Organization: >Environment: System: FreeBSD hoppel.local 6.0-RELEASE FreeBSD 6.0-RELEASE #3: Sun Nov 27 19:50:05 CET 2005 bkoenig@hoppel.local:/home/bkoenig/obj/home/bkoenig/devel/freebsd/RELENG_6_0/src/sys/HOPPEL i386 >Description: According to ECMA-167 7.2.3 the bytes 0-3 and 5-15 should be used to calculate the checksum of a descriptor tag. Actually only the bytes 0-3 and 5-14 will be used. >How-To-Repeat: >Fix: --- udf_vfsops.c-2005121701.diff begins here --- --- src/sys/fs/udf/udf_vfsops.c.orig Sat Dec 17 01:51:41 2005 +++ src/sys/fs/udf/udf_vfsops.c Sat Nov 26 20:15:50 2005 @@ -296,7 +296,7 @@ if (tag->id != id) return (EINVAL); - for (i = 0; i < 15; i++) + for (i = 0; i < 16; i++) cksum = cksum + itag[i]; cksum = cksum - itag[4]; --- udf_vfsops.c-2005121701.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051217011606.301675089C>