mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Verify length of the data to read as well.
This commit is contained in:
parent
fc3643bb24
commit
3ae0e7d8ae
1 changed files with 2 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ g_label_ntfs_taste(struct g_consumer *cp, char *label, size_t size)
|
|||
|
||||
mftrecsz = (char)bf->bf_mftrecsz;
|
||||
recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz);
|
||||
if(recsize % pp->sectorsize != 0)
|
||||
goto done;
|
||||
|
||||
voloff = bf->bf_mftcn * bf->bf_spc * bf->bf_bps +
|
||||
recsize * NTFS_VOLUMEINO;
|
||||
|
|
|
|||
Loading…
Reference in a new issue