kern/90521: UDF driver might calculate a wrong descriptor tag
checksum
Björn König
bkoenig at cs.tu-berlin.de
Fri Dec 16 17:20:10 PST 2005
>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 at 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:
More information about the freebsd-bugs
mailing list