mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
f5a2741ec2
Separately checking the state of a file before operating on it may allow an attacker to modify the file between the two operations. Reference: CWE-367 https://github.com/bminor/glibc/blob/4290aed05135ae4c0272006442d147f2155e70d7/sysdeps/posix/remove.c#L29-L41 Signed-off-by: Mingjie Shen <shen497@purdue.edu>