mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Merge branch 'main' into mpu_prorotypes
This commit is contained in:
commit
a2b5eb734a
2
queue.c
2
queue.c
|
@ -513,7 +513,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
|
||||||
/* Check for multiplication overflow. */
|
/* Check for multiplication overflow. */
|
||||||
( ( SIZE_MAX / uxQueueLength ) >= uxItemSize ) &&
|
( ( SIZE_MAX / uxQueueLength ) >= uxItemSize ) &&
|
||||||
/* Check for addition overflow. */
|
/* Check for addition overflow. */
|
||||||
( ( UBaseType_t ) ( SIZE_MAX - sizeof( Queue_t ) ) >= ( uxQueueLength * uxItemSize ) ) )
|
( ( SIZE_MAX - sizeof( Queue_t ) ) >= ( size_t ) ( uxQueueLength * uxItemSize ) ) )
|
||||||
{
|
{
|
||||||
/* Allocate enough space to hold the maximum number of items that
|
/* Allocate enough space to hold the maximum number of items that
|
||||||
* can be in the queue at any time. It is valid for uxItemSize to be
|
* can be in the queue at any time. It is valid for uxItemSize to be
|
||||||
|
|
Loading…
Reference in a new issue