cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-12567) Null Dereference
Date Wed, 31 Aug 2016 08:39:22 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-12567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-12567:
-----------------------------------------
    Priority: Trivial  (was: Minor)

> Null Dereference
> ----------------
>
>                 Key: CASSANDRA-12567
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12567
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: CQL
>            Reporter: Eduardo Aguinaga
>            Assignee: Sylvain Lebresne
>            Priority: Trivial
>             Fix For: 3.x
>
>
> 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)

Mime
View raw message