llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.44k stars 12.17k forks source link

False positive result #9244

Open llvmbot opened 13 years ago

llvmbot commented 13 years ago
Bugzilla Link 8872
Version unspecified
OS Linux
Attachments Screenshot of the dereference of NULL pointer report
Reporter LLVM Bugzilla Contributor

Extended Description

This screenshot of a dereference of NULL pointer report shows a false positive.

http://www.netsurf-browser.org/temp/content-llcache2.png

At [2] it takes the false branch, which should be impossible given the logic in the assert() at line 1247, and the assumption of NULL at [1[a]].

I'm using the clang / scan-build in packaged Ubuntu 10.10.

Also, it would be helpful if, instead of saying "pointer value" in "[a] Assuming pointer value is null", it actually gave the name of the pointer it meant (user->prev). It's a bit ambiguous at the moment as there are other pointer values there.

llvmbot commented 13 years ago

assigned to @tkremenek