Skip to content
Snippets Groups Projects
Commit 2bc46439 authored by Johann Dahm's avatar Johann Dahm Committed by David M. Richter
Browse files

Added a test if fields[WHO_INDEX] is larger than NFS4_MAX_PRINCIPALSIZE.

parent 8e349858
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,9 @@ struct nfs4_ace * nfs4_ace_from_string(char *ace_buf, int is_dir)
if (ret < 0) {
printf("Scanning ACE string '%s' failed.\n", bufp);
goto out;
} else if (strlen(fields[WHO_INDEX]) > NFS4_MAX_PRINCIPALSIZE) {
fprintf(stderr,"Principal \'%s\' is too large.\n",fields[WHO_INDEX]);
goto out;
}
switch (*fields[TYPE_INDEX]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment