Fix potential out of bounds read issue with getTypeIDForTypeName().
authorDavid Reiss <dreiss@apache.org>
Sun, 2 Mar 2008 00:20:47 +0000 (00:20 +0000)
committerDavid Reiss <dreiss@apache.org>
Sun, 2 Mar 2008 00:20:47 +0000 (00:20 +0000)
commit2c9824c5bdd3d9aefa0c1edb4538c996e4d513dd
tree4c993889000fd0250ed28dbd1e22c986bdb08645
parentf50021af668da8a143a5dfd764c5380c0a330a39
Fix potential out of bounds read issue with getTypeIDForTypeName().

Make sure type name is at least 2 characters long.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665536 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/protocol/TJSONProtocol.cpp