Fix calculation of descriptor tag checksums. According to ECMA-167, Part 4,
7.2.3, bytes 0-3 and 5-15 are used to calculate the checksum of a descriptor tag. PR: kern/90521 Submitted by: Björn König <bkoenig@cs.tu-berlin.de> Reviewed by: scottl Approved by: emax (mentor)
This commit is contained in:
parent
df1cc4e53a
commit
a8a27cb0f9
@ -290,7 +290,7 @@ udf_checktag(struct desc_tag *tag, uint16_t id)
|
||||
if (le16toh(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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user