auth: Don't overflow lower case cell string
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 3 Mar 2013 17:47:49 +0000 (17:47 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 11 Mar 2013 14:27:39 +0000 (07:27 -0700)
commit1c582768df98494775caf197da23612d59425509
treea3b055f92b246a29773b7c66ba2c2fd6e68f8499
parentcc95fca8e16f83d7dda3f09a5133dc9294299d61
auth: Don't overflow lower case cell string

When building tcell_l in kerberosSuperUser, make sure that we
don't overflow the string that we're constructing.

Use the opr_lcstring function to do the lower case conversion,
rather than rolling our own.

Caught by coverity (#985772)

Change-Id: I6e28cfc54883aac7e3a3eb2f4e2b2bf7ebc0bc63
Reviewed-on: http://gerrit.openafs.org/9544
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/auth/userok.c