nuttx-apps
nuttx-apps copied to clipboard
Open flags and mode in calls to open().
There are some cases that open() is called with wrong arguments.
Here are some examples that I managed to find:
In NSH, here a file is opened without oflags (e.g. O_RDWR).
In file testing/ostest/aio.c several calls are made to open() with the flag O_CREAT, but no mode is passed. Example here.