nightstyles / alembic

Automatically exported from code.google.com/p/alembic
Other
1 stars 0 forks source link

String arrays incorrectly sharing a key. #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
These 2 string arrays end up sharing the same key.

std::vector < Alembic::Util::str_t > vals2(4);
vals2[0] = "";
vals2[1] = "Is the cake really a lie?";
vals2[2] = "";
vals2[3] = "I certainly hope not.";

std::vector < Alembic::Util::str_t > vals3(4);
vals3[0] = "Is the cake really a lie?";
vals3[1] = "";
vals3[2] = "";
vals3[3] = "I certainly hope not.";

It is probably because the NULL character isn't being accounted for during key 
calculation for strings.

Original issue reported on code.google.com by ard...@gmail.com on 16 Nov 2010 at 11:03

GoogleCodeExporter commented 9 years ago
Duplicate of Issue 61, closing.

Original comment by ard...@gmail.com on 16 Nov 2010 at 11:03