You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:17:40 UTC

[jira] [Created] (TRAFODION-639) LP Bug: 1370749 - Inconsistent user of character string lengths

Alice Chen created TRAFODION-639:
------------------------------------

             Summary: LP Bug: 1370749 - Inconsistent user of character string lengths
                 Key: TRAFODION-639
                 URL: https://issues.apache.org/jira/browse/TRAFODION-639
             Project: Apache Trafodion
          Issue Type: Bug
          Components: sql-security
            Reporter: Roberta Marton
            Assignee: Cliff Gray
            Priority: Minor
             Fix For: 1.1 (pre-incubation)


In Context.cpp (2014-09-16) code base:

Line 4853: char authNameFromTable[600];
Looks like authQuery will make the assumption that 600 (actually 599) is long enough. Shouldn't this at least be a defined constant rather than hard-coded?

Line 5097: char usersNameFromUsersTable[600];
600 seems to be a popular number. Should be a defined enum or const int in a header file somewhere.

We do already have a literal that defines the length of authorization names.  This should be used instead of 600.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)