]> begriffs open source - freertos/commit
event_create(): check malloc() return value to be non-NULL (#1084)
authorFlorian La Roche <florian.laroche@gmail.com>
Fri, 7 Jun 2024 08:17:13 +0000 (10:17 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 08:17:13 +0000 (13:47 +0530)
commitc431b358c802e1ec207ecbf3f68c34e9b2a17f46
treed333a75d4bcfa3d9ef6a65c177bf003a42f1b83f
parent11174fb860ae4aaca544b2ad12df040b81a132e3
event_create(): check malloc() return value to be non-NULL (#1084)

* event_create(): check malloc() to be non-NULL

Check malloc() to return non-NULL before writing data
in the function event_create().

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
* Code review suggestion

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
---------

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
portable/ThirdParty/GCC/Posix/utils/wait_for_event.c