Openembedded Core Discussions
 help / color / mirror / Atom feed
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: Wed, 2 Apr 2014 10:53:51 +0800	[thread overview]
Message-ID: <533B7BBF.9050504@windriver.com> (raw)
In-Reply-To: <CAMKF1sps5Bu26iN7ak76t-QZQnhrm1wTvhAcHWs94xnz035BvQ@mail.gmail.com>

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


  reply	other threads:[~2014-04-02  2:53 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
2014-04-01 14:57       ` Khem Raj
2014-04-02  2:53         ` Hongxu Jia [this message]
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=533B7BBF.9050504@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