diff options
Diffstat (limited to 'libcli/security')
-rw-r--r-- | libcli/security/dom_sid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 9952977fa9..6a046cd806 100644 --- a/libcli/security/dom_sid.c +++ b/libcli/security/dom_sid.c @@ -113,6 +113,10 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret) if (sidstr[i] == '-') num_sub_auths++; } + if (num_sub_auths > ARRAY_SIZE(ret->sub_auths)) { + return false; + } + ret->sid_rev_num = rev; ret->id_auth[0] = 0; ret->id_auth[1] = 0; |