diff options
author | fjoe <fjoe@FreeBSD.org> | 2006-01-22 21:09:38 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2006-01-22 21:09:38 +0000 |
commit | e39df5af9f36301c7d3da1c8150f9aa3adedf5f6 (patch) | |
tree | 73144ccbae77ee03822b281d454a84fed2f19b81 /sys/fs/msdosfs/direntry.h | |
parent | bfe1f15bac88af5227cf0b1ced01850deace5579 (diff) | |
download | FreeBSD-src-e39df5af9f36301c7d3da1c8150f9aa3adedf5f6.zip FreeBSD-src-e39df5af9f36301c7d3da1c8150f9aa3adedf5f6.tar.gz |
Do not assume that `char direntry::deExtension[3]' starts right after
`char direntry::deName[8]' and access deExtension[] explicitly.
Found by: Coverity Prevent(tm)
CID: 350, 351, 352
Diffstat (limited to 'sys/fs/msdosfs/direntry.h')
-rw-r--r-- | sys/fs/msdosfs/direntry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/msdosfs/direntry.h b/sys/fs/msdosfs/direntry.h index 47e1257..7e325f7 100644 --- a/sys/fs/msdosfs/direntry.h +++ b/sys/fs/msdosfs/direntry.h @@ -151,7 +151,7 @@ int unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt, int winChkName(const u_char *un, size_t unlen, int chksum, struct msdosfsmount *pmp); int win2unixfn(struct winentry *wep, int chksum, struct msdosfsmount *pmp); -u_int8_t winChksum(u_int8_t *name); +u_int8_t winChksum(struct direntry *dep); int winSlotCnt(const u_char *un, size_t unlen, struct msdosfsmount *pmp); size_t winLenFixup(const u_char *un, size_t unlen); #endif /* _KERNEL */ |