[OE-core] [PATCH 1/4] libarchive: fix CVE-2013-0211

Hongxu Jia hongxu.jia at windriver.com
Wed Apr 2 02:53:51 UTC 2014


On 04/01/2014 10:57 PM, Khem Raj wrote:
>> How about test the size of size_t and assigned the related MAX value:
>> >
>> >const size_t max_write = (sizeof(size_t) >=
>> >sizeof(int))?INT_MAX:(sizeof(size_t) == sizeof(short))?SHRT_MAX:CHAR_MAX;
>> >
> you could use something like (size_t)-1 to denote SIZE_MAX
>

Sounds good, I will do that in V2.

//Hongxu



More information about the Openembedded-core mailing list