From b035e0321f2cd4cf03e56711e8cd86910abe2bbf Mon Sep 17 00:00:00 2001 From: Carl Lundin <53273776+lundinc2@users.noreply.github.com> Date: Mon, 14 Dec 2020 17:35:36 -0800 Subject: [PATCH] Re-add missing license files caused by PR #471 and fix patches (#477) * Re-add missing license files caused by PR #471. * Fix proof patch. --- ...9-Remove-overflow-asserts-from-xQueueGenericCreate.patch | 6 +++--- .../Test/CBMC/proofs/Task/TaskResumeAll/Configurations.json | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/FreeRTOS/Test/CBMC/patches/0009-Remove-overflow-asserts-from-xQueueGenericCreate.patch b/FreeRTOS/Test/CBMC/patches/0009-Remove-overflow-asserts-from-xQueueGenericCreate.patch index cfd0ac9168..5665447062 100644 --- a/FreeRTOS/Test/CBMC/patches/0009-Remove-overflow-asserts-from-xQueueGenericCreate.patch +++ b/FreeRTOS/Test/CBMC/patches/0009-Remove-overflow-asserts-from-xQueueGenericCreate.patch @@ -1,5 +1,5 @@ diff --git a/FreeRTOS/Source/queue.c b/FreeRTOS/Source/queue.c -index d2e27e55a..4dd164da6 100644 +index b01dfd11f..b219b599a 100644 --- a/FreeRTOS/Source/queue.c +++ b/FreeRTOS/Source/queue.c @@ -395,7 +395,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue, @@ -9,5 +9,5 @@ index d2e27e55a..4dd164da6 100644 - configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) ); + /* configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) ); */ - /* Allocate the queue and storage area. Justification for MISRA - * deviation as follows: pvPortMalloc() always ensures returned memory + /* Check for addition overflow. */ + configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes ); diff --git a/FreeRTOS/Test/CBMC/proofs/Task/TaskResumeAll/Configurations.json b/FreeRTOS/Test/CBMC/proofs/Task/TaskResumeAll/Configurations.json index 70deca7786..2788b60ec1 100644 --- a/FreeRTOS/Test/CBMC/proofs/Task/TaskResumeAll/Configurations.json +++ b/FreeRTOS/Test/CBMC/proofs/Task/TaskResumeAll/Configurations.json @@ -17,6 +17,8 @@ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. #