Eduardo Aguinaga created CASSANDRA-12567: --------------------------------------------
Summary: Null Dereference Key: CASSANDRA-12567 URL: https://issues.apache.org/jira/browse/CASSANDRA-12567 Project: Cassandra Issue Type: Sub-task Reporter: Eduardo Aguinaga Overview: In May through June of 2016 a static analysis was performed on version 3.0.5 of the Cassandra source code. The analysis included an automated analysis using HP Fortify v4.21 SCA and a manual analysis utilizing SciTools Understand v4. The results of that analysis includes the issue below. Issue: In the file AlterTableStatement.java on lines 139, 190 & 192, a null dereference may occur by referencing the member validator, which can be assigned null on line 96. at the beginning of the method announceMigration. {code:java} AlterTableStatement.java, lines 88-139: 088 public Event.SchemaChange announceMigration(boolean isLocalOnly) throws RequestValidationException 089 { . . . 096 CQL3Type validator = this.validator == null ? null : this.validator.prepare(keyspace()); . . . 108 switch (oType) 109 { 110 case ADD: . . . 138 139 AbstractType<?> type = validator.getType(); {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)