Devin Coughlin

Results comments of Devin Coughlin

Reproduced. Thanks for the report! This happens because the analyzer does not reason that stringArray[0] is not nil and so when it sees the if statement, it explores two paths:...

There are two separate warnings mentioned here. One is a compiler warning (-Wnullable-to-nonnull-conversion). The other is a static analyzer warning (the nullability checker). The analyzer *does* warn here: $ cat...

I suspect this is the same as https://llvm.org/bugs/show_bug.cgi?id=16833, which Alexei Sidorin fixed in r248318. (The fix should be present in clang-3.8+) static inline void get_phys_addr_pmsav7_default(CPUARMState *env, ARMMMUIdx mmu_idx, int32_t address,...

Reproduced. I'm surprised that the StackAddrEscapeChecker doesn't catch this! Tracked internally by .

This reproduces (somewhat unreliably) on ToT. Here is a back trace from a debug build: UNREACHABLE executed at /Volumes/Data/Clangs/OpenSourceGit/clang/lib/AST/Stmt.cpp:260! 0 clang 0x0000000109af7c8b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43 1 clang 0x0000000109af6eb6 llvm::sys::RunSignalHandlers() +...

This is a dup of llvm/llvm-project#13798 . *** This bug has been marked as a duplicate of bug llvm/llvm-project#13798 ***

The root cause here is that the analyzer doesn't reason symbolically about dis-equality. $ cat disequality.c void clang_analyzer_eval(int); void bar(int *a, int *b) { if (a == b) return; if...

mentioned in issue llvm/llvm-project#3470

The fundamental issue is that the analyzer doesn't track bit-wise constraints. This is tracked by https://llvm.org/bugs/show_bug.cgi?id=3098 *** This bug has been marked as a duplicate of bug llvm/llvm-project#3470 ***