DBench: Defect detection benchmark We have collected resource leak, NPE and SQL injection defects in Java programming language. The number of defects in each category is as follows: categories number resource leak 1,150 NPE 209 SQL injection 46 XSS 177