Tyler Hobbs created CASSANDRA-7707:
--------------------------------------
Summary: 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
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)