[Bugs] [Bug 1788806] __server_getspec(), volume path limited to 255 chars
bugzilla at redhat.com
bugzilla at redhat.com
Mon Jan 13 06:18:27 UTC 2020
https://bugzilla.redhat.com/show_bug.cgi?id=1788806
Sanju <srakonde at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |srakonde at redhat.com,
| |sunkumar at redhat.com
Doc Type|--- |If docs needed, set a value
Flags| |needinfo?(sunkumar at redhat.c
| |om)
--- Comment #1 from Sanju <srakonde at redhat.com> ---
Sunny,
I see the below code in __server_getspec(). Can we have snapshot name whose
length is more NAME_MAX? If so, how the checks are handled in other code paths?
Are we using any other macro?
libglusterfs/src/glusterfs/compat.h:324:#define NAME_MAX 255
volume = args.key;
if (strlen(volume) >= (NAME_MAX)) {
op_errno = EINVAL;
gf_msg(this->name, GF_LOG_ERROR, EINVAL, GD_MSG_NAME_TOO_LONG,
"volume name too long (%s)", volume);
goto fail;
}
Thanks,
Sanju
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list