[PATCH] D125400: [clang][Analyzer] Add errno state to standard functions modeling.
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 17 01:28:37 PDT 2022
martong added a comment.
In D125400#3508955 <https://reviews.llvm.org/D125400#3508955>, @balazske wrote:
> Function `mkdir` is modeled incorrectly by the checker. According to the man page it can return 0 or -1 only (-1 is error) but the checker allows non-negative value at success. So the shown bug report is incorrect (it can be only -1 if not 0 and then check of `errno` is allowed). Anyway the note tags should be added to every function.
Okay, could you please correct the summary then?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125400/new/
https://reviews.llvm.org/D125400
More information about the cfe-commits
mailing list