Re: [PATCH] libblkid: prevent OOB access while probing HFS+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 15, 2017 at 10:12:00PM +0100, Tobias Stoeckmann wrote:
> -	if (be32_to_cpu(key->parent_id) != HFSPLUS_POR_CNID)
> +	if (be32_to_cpu(key->parent_id) != HFSPLUS_POR_CNID ||
> +	    be16_to_cpu(key->unicode_len > 255))

Typo. Fixed. I guess it should be 

    be16_to_cpu(key->unicode_len) > 255

Note than we have regression tests for almost all filesystems. So you 

 $ cd tests
 $ ./run.sh blkid

to see result.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux