2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Use MAX_UID_T_LEN + 1 for uid/gid buffers, not MAX_UID_T_LEN to

prevent potential truncation.  Bug #562.
This commit is contained in:
Todd C. Miller
2012-06-27 13:41:58 -04:00
parent 386ba7b062
commit e9f5a38398
2 changed files with 2 additions and 2 deletions

View File

@@ -687,7 +687,7 @@ void
rebuild_env(void)
{
char **old_envp, **ep, *cp, *ps1;
char idbuf[MAX_UID_T_LEN];
char idbuf[MAX_UID_T_LEN + 1];
unsigned int didvar;
bool reset_home = false;