Menu

#86 FreeRTOS+IO Char Queue Rx potential infinite loop in ISR

v1.0 (example)
closed-out-of-date
nobody
None
5
2020-02-22
2014-04-24
No

FreeRTOS+IO V1.0.1 with FreeRTOS V7.5.2

In the macro ioutilsRX_CHARS_INTO_QUEUE_FROM_ISR, if the queue is full, the error state will be indicated and the macro will loop as long as the queue is full unless the condition checks for the error state. This is in an ISR, so no code will get a chance to remove a byte from the queue, hence the infinite loop.

The attached patch adds a break to exit the loop.

1 Attachments

Discussion

  • Richard Barry

    Richard Barry - 2020-02-22
    • status: open --> closed-out-of-date
     
  • Richard Barry

    Richard Barry - 2020-02-22

    Being replaced by the "common IO" interface.

     

Log in to post a comment.