mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
There are three bug in fifo testcase. 1. line 211 and line 295 should be nbytes not ret. 2. coverity report error: CID 1667262: (#4 of 11): Double close (USE_AFTER_FREE) 11. double_close: Calling close(int) will close the handle fd that has already been closed. [Note: The source code implementation of this function has been overwritten by the built-in model.] Double close will ocurr when line 234 is true and goto line 341, close again! Now, Using the previous code logic, Use a tid and an errout_with_null_thread to avoid uninitialized problems. 3. since line 295 is used ret not nbytes, error not expose before. When the end of read and write are opened, end of write will write successfully even if end of read not read. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| interlock_test.c | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| pipe.h | ||
| pipe_main.c | ||
| redirect_test.c | ||
| transfer_test.c | ||