mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174538
@ -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