public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC PATCH v3 05/10] ima/ima_boot_aggregate: Increase MAX_EVENT_SIZE to 1MB
Date: Fri, 20 Apr 2018 13:02:49 +0200	[thread overview]
Message-ID: <20180420110248.GB19090@rei> (raw)
In-Reply-To: <20180419195503.7194-6-pvorel@suse.cz>

Hi!
> +	event.data = (char *) malloc(MAX_EVENT_DATA_SIZE);
                        ^
		Please never cast return value from malloc() in	C.

The malloc returns void* which is compatible with any other pointer type
for assigments. This is only needed when you attempt to use malloc()
in C++, but that is not the case here.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2018-04-20 11:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19 19:54 [LTP] [RFC PATCH v3 00/10] Rewrite tests into new API + fixes Petr Vorel
2018-04-19 19:54 ` [LTP] [RFC PATCH v3 01/10] security/ima: " Petr Vorel
2018-04-27 14:13   ` Mimi Zohar
2018-04-28 15:09     ` Petr Vorel
2018-04-19 19:54 ` [LTP] [RFC PATCH v3 02/10] security/ima: Change order of tests Petr Vorel
2018-04-24 18:09   ` Petr Vorel
2018-04-26 14:32     ` Mimi Zohar
2018-04-26 16:20       ` Mimi Zohar
2018-04-27  0:03         ` Petr Vorel
2018-04-19 19:54 ` [LTP] [RFC PATCH v3 03/10] ima/ima_policy.sh: Improve check of policy writability Petr Vorel
2018-04-19 19:54 ` [LTP] [RFC PATCH v3 04/10] ima/ima_policy.sh: Load whole policy with cat Petr Vorel
2018-04-19 19:54 ` [LTP] [RFC PATCH v3 05/10] ima/ima_boot_aggregate: Increase MAX_EVENT_SIZE to 1MB Petr Vorel
2018-04-20 11:02   ` Cyril Hrubis [this message]
2018-04-19 19:54 ` [LTP] [RFC PATCH v3 06/10] ima/tpm.sh: Use evmctl + other fixes Petr Vorel
2018-04-19 19:55 ` [LTP] [RFC PATCH v3 07/10] ima/ima_mmap: Reduce sleep + log it Petr Vorel
2018-04-20 11:36   ` Cyril Hrubis
2018-04-19 19:55 ` [LTP] [RFC PATCH v3 08/10] ima/{ima_measurements, ima_violations}.sh: Avoid running on tmpfs Petr Vorel
2018-04-19 19:55 ` [LTP] [RFC PATCH v3 09/10] ima: CRYPTO_LIBS are needed only for ima_boot_aggregate Petr Vorel
2018-04-19 19:55 ` [LTP] [RFC PATCH v3 10/10] ima/ima_mmap: Rewrite to new library Petr Vorel
2018-04-20 11:42   ` Cyril Hrubis
2018-04-26 16:18 ` [LTP] [RFC PATCH v3 00/10] Rewrite tests into new API + fixes Mimi Zohar
2018-04-27  9:32   ` Petr Vorel
2018-04-27  9:51 ` Petr Vorel
2018-04-27 11:26   ` Mimi Zohar
2018-04-27 12:05   ` Mimi Zohar
2018-04-27 12:51     ` Petr Vorel

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=20180420110248.GB19090@rei \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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