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.
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 flagO_CREAT, but no mode is passed. Example here.