FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2012 Threads] Klockwork issue in timers.cPosted by Richard on November 2, 2012 Hi all,
We run Klockwork on our code base - a static code analysis tool. It complains about a possible NULL pointer deference in the function prvProcessReceivedCommands in timers.c.
In trying to follow the code through to see if this is at all possible, I came across a comment on line 508 that talks about a timer command, trmCOMMAND_PROCESS_TIMER_OVERFLOW which does not appear to exist in the code. This implies that the logic following on 511 will always run since there does not appear to be any time when the pxTimer is set to NULL.
Is this just code and/or comments left over from prior releases of FreeRTOS or am I missing something?
Many thanks Richard Jackson
RE: Klockwork issue in timers.cPosted by Richard on November 2, 2012 I've just had a look at this and don't think you are missing something. The code looks obsolete (although benign) and has been removed.
Thanks and regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|