apache / apache/nuttx-apps

Illegal use of wdog timers in FTPC

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
465
Forks
779
Avg merge
2d 9h
Merged PRs (30d)
36

Description

netutils/ftpc/ftpc_connect.c uses internal OS wdog timer functions wd_start(), wd_cancel(), etc. This is aviolation of the portable POSIX OS interface. wd_start(0 is not an application accessible interface. It is only for use inside the OS.

The wdog interface functions cannot be called in PROTECTED or KERNEL build modes nor can they do the interrupt handling logic access user space. Remember that the callback is in the context of the timer interrupt handler.

The use of the internal OS wdog function should be replaced with user POSIX timer interface functions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.