libXpm - scan-build results

User:jeremy@yuffie.apple.com
Working Directory:/Users/jeremy/src/freedesktop/jhbuild/src/xorg/lib/libXpm
Command Line:make
Clang Version:clang version 3.8.0 (branches/release_38 262722)
Date:Mon May 30 20:42:52 2016

Bug Summary

Bug TypeQuantityDisplay?
All Bugs10
Dead store
Dead assignment1
Logic error
Dereference of null pointer2
Division by zero1
Memory Error
Memory leak3
Unix API
Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)3

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Dead storeDead assignmentcreate.cXpmCreateImageFromXpmImage8171View Report
Logic errorDereference of null pointercreate.cSetCloseColor2912View Report
Logic errorDereference of null pointerscan.cScanOtherColors54332View Report
Logic errorDivision by zerohashtab.cxpmHashSlot12424View Report
Memory ErrorMemory leakparse.cxpmParseColors28922View Report
Memory ErrorMemory leakparse.cxpmParseColors35013View Report
Memory ErrorMemory leakcreate.cParseAndPutPixels240811View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)scan.cXpmCreateXpmImageFromImage2436View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)parse.cParsePixels3873View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)scan.cXpmCreateXpmImageFromImage31618View Report