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-7707) blobAs() function results not validated
Date Thu, 07 Aug 2014 17:14:12 GMT

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

Sylvain Lebresne updated CASSANDRA-7707:
----------------------------------------

    Attachment: 7707.txt

> blobAs() function results not validated
> ---------------------------------------
>
>                 Key: CASSANDRA-7707
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7707
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tyler Hobbs
>            Assignee: Tyler Hobbs
>            Priority: Critical
>             Fix For: 2.0.10, 2.1.1
>
>         Attachments: 7707.txt
>
>
> The results of the {{blobAs*()}} functions are not validated.
> Here are some examples:
> Non-type1 UUID inserted into timeuuid column:
> {noformat}
> create table foo (k int primary key, v timeuuid);
> insert into foo (0, blobAsTimeuuid(0x00000000000000000000000000000000));
> {noformat}
> Blob with length > 4 inserted into an int column:
> {noformat}
> create table bar (k int primary key, v int);
> insert into bar (k, v) VALUES (0, blobAsInt(0x0000000000));
> {noformat}
> Non-ascii characters inserted into an ascii column:
> {noformat}
> create table baz (k int primary key, v ascii);
> insert into baz (k, v) VALUES (0, blobAsAscii(0xFFFFFFFF));
> {noformat}
> Some of these (like the int column) could cause issues that look like corruption.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message