From: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: boris.ostrovsky@oracle.com, keir@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH V2] x86, amd_ucode: Support multiple container files appended together
Date: Wed, 25 Jun 2014 09:54:52 -0500 [thread overview]
Message-ID: <53AAE2BC.5080203@amd.com> (raw)
In-Reply-To: <53AAC4CF020000780001D2A2@mail.emea.novell.com>
On 6/25/2014 5:47 AM, Jan Beulich wrote:
>>>> + return 0;
>>>> +}
>>>> +
>>>> +static int container_fast_forward(const void *data, size_t size_left,
>> size_t *offset)
>>>> +{
>>>> + size_t size;
>>>> + uint32_t *header;
>>>> +
>>>> + while ( size_left )
>>>> + {
>>>> + header = (uint32_t *) (data + *offset);
>>> Pointless (and wrong, as it discards the const qualifier) cast.
>> Ok. I have removed this cast (and as a consequence *header) entirely.
>> Also need -
>> if ( size_left < 0 ) check. Reason-
>> With offset value being advanced aggressively in 'install_equiv_cpu_table',
>> It could be that we go over the bufsize. This situation will be caught here.
> Except that size_left is of unsigned type, i.e. will never be < 0.
>
>
Oh. Missed that. Shall fix this.
Thanks,
-Aravind.
prev parent reply other threads:[~2014-06-25 14:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-23 20:25 [PATCH V2] x86, amd_ucode: Support multiple container files appended together Aravind Gopalakrishnan
2014-06-24 7:23 ` Jan Beulich
2014-06-24 22:42 ` Aravind Gopalakrishnan
2014-06-25 4:04 ` Boris Ostrovsky
2014-06-25 14:49 ` Aravind Gopalakrishnan
2014-06-25 10:47 ` Jan Beulich
2014-06-25 14:54 ` Aravind Gopalakrishnan [this message]
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=53AAE2BC.5080203@amd.com \
--to=aravind.gopalakrishnan@amd.com \
--cc=JBeulich@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.