From: Hongxu Jia <hongxu.jia@windriver.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: Saul Wold <saul.wold@intel.com>,
Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/4] libarchive: fix CVE-2013-0211
Date: Tue, 1 Apr 2014 15:40:23 +0800 [thread overview]
Message-ID: <533A6D67.9060608@windriver.com> (raw)
In-Reply-To: <CAMKF1sozZEVsJ=oaBW-mqex27LvOTfOGW90+g_9gkPg27OJEhA@mail.gmail.com>
On 04/01/2014 01:30 PM, Khem Raj wrote:
> On Fri, Mar 28, 2014 at 2:43 AM, Hongxu Jia <hongxu.jia@windriver.com> wrote:
>> ++ const size_t max_write = INT_MAX;
> I think INT_MAX is a mismatch here size_t may not be defined 'unsigned
> int' on all kind of architectures.
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;
//Hongxu
next prev parent reply other threads:[~2014-04-01 7:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 9:43 [PATCH 0/4][Part III] wr-misc patches Hongxu Jia
2014-03-28 9:43 ` [PATCH 1/4] libarchive: fix CVE-2013-0211 Hongxu Jia
2014-04-01 5:30 ` Khem Raj
2014-04-01 7:40 ` Hongxu Jia [this message]
2014-04-01 14:57 ` Khem Raj
2014-04-02 2:53 ` Hongxu Jia
2014-03-28 9:43 ` [PATCH 2/4] libtiff: fix CVE-2013-4244 Hongxu Jia
2014-03-28 9:43 ` [PATCH 3/4] nss-3.15.1: fix CVE-2013-1741 Hongxu Jia
2014-03-28 9:43 ` [PATCH 4/4] nss-3.15.1: fix CVE-2013-5605 Hongxu Jia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=533A6D67.9060608@windriver.com \
--to=hongxu.jia@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
--cc=saul.wold@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox