mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
sk-unix: Fix typo in name length estimation
Name with up to UNIX_PATH_MAX in length is allowed value. Reported-by: Nikita Spiridonov <nspiridonov@odin.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
61f37ab1fd
commit
4e99a6b542
1 changed files with 1 additions and 1 deletions
|
|
@ -1251,7 +1251,7 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base)
|
|||
ui->name_dir = (void *)ui->ue->name_dir;
|
||||
|
||||
if (ui->ue->name.len) {
|
||||
if (ui->ue->name.len >= UNIX_PATH_MAX) {
|
||||
if (ui->ue->name.len > UNIX_PATH_MAX) {
|
||||
pr_err("Bad unix name len %d\n", (int)ui->ue->name.len);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue