[Lldb-commits] [scan-build] Fix reported dead store, logic error and api bugs

Apelete Seketeli via lldb-commits lldb-commits at lists.llvm.org
Sun Apr 3 03:37:04 PDT 2016


Hello,

Here are a few changes that try to address some logic error bugs
reported by running scan-build over the LLDB code base.

I have no background in compiler technology and I may have been trying
to fix false positives; here is a quick overview of what scan-build
reported, let me know if the fixes are relevant:

Bug Group: Dead store
Bug Type: Dead assignment
Files: source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp
    
Bug Group: Logic error
Bug Type: Called C++ object pointer is null
Files: source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp
    
Bug Group: Logic error
Bug Type: Called C++ object pointer is null
Files: source/API/SBThread.cpp
    
Bug group: Logic error
Bug Type: Branch condition evaluates to a garbage value
Files: source/Core/DynamicLoader.cpp
    
Bug Group: API
Bug Type: Argument with 'nonnull' attribute passed null
Files: source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp

Cheers.
-- 
        Apelete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan-build-lldb-errors.patch
Type: text/x-diff
Size: 5007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160403/49b0fc02/attachment.patch>


More information about the lldb-commits mailing list