From: John Keeping Date: Sun, 16 Feb 2014 16:06:01 GMT Subject: [PATCH 0/5] Miscellaneous fixes from static analysis Message-ID: The first two of these fix real bugs, the rest just clean up some of the less obviously "not actually a problem" issues identified by Clang's static analyzer [1] and stack[2]. Stack is interesting in that it is designed to detect potentially undesirable optimizations where undefined behaviour may be being invoked unwittingly. It only detected two error's in git.git, the first of which is fixed by the final patch. The second it describes as: bug: anti-algebra model: | %11 = icmp ult i8* %extra_args, %7, !dbg !342 --> %10 = icmp slt i64 %9, 0, !dbg !342 ************************************************************ %extra_args --> (-1 * (sext i32 %buflen to i64))