[waffle] [PATCH 07/17] core: Add arithmetic functions that detect overflow
Chad Versace
chad.versace at intel.com
Tue Jan 27 09:25:49 PST 2015
On 01/21/2015 06:06 AM, Emil Velikov wrote:
> On 4 January 2015 at 22:03, Chad Versace <chad.versace at intel.com> wrote:
>> Define the function below. All act on size_t inputs.
>> wcore_add_size
>> wcore_iadd_size : in-place addition
>> wcore_mul_size
>> wcore_imul_size : in-place multiplication
>>
>> Future patches will use the functions to safely calculate the 'size'
>> value given to malloc.
>>
> Can you squash this trivial fix (for msvc inline we need to include
> the c99_compat.h header)
>
> diff --git a/src/waffle/core/wcore_util.h b/src/waffle/core/wcore_util.h
> index acb46ce..183134f 100644
> --- a/src/waffle/core/wcore_util.h
> +++ b/src/waffle/core/wcore_util.h
> @@ -26,6 +26,7 @@
> #pragma once
>
> #include <stddef.h>
> +#include "c99_compat.h"
I'll add that before pushing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/waffle/attachments/20150127/e33e5dcb/attachment.sig>
More information about the waffle
mailing list