mirror of
https://github.com/mirror/wget.git
synced 2025-03-04 23:00:22 +08:00
* src/ftp-ls.c (ftp_parse_vms_ls): Fix integer overflow by left shift
This commit is contained in:
parent
d8365b0607
commit
79c1f333dc
@ -891,12 +891,12 @@ ftp_parse_vms_ls (FILE *fp)
|
||||
if (j == 0)
|
||||
{
|
||||
perms = 0;
|
||||
j = 1;
|
||||
}
|
||||
else
|
||||
else if (j < 4)
|
||||
{
|
||||
perms <<= 3;
|
||||
}
|
||||
j++;
|
||||
break;
|
||||
case 'R':
|
||||
perms |= 4;
|
||||
|
Loading…
Reference in New Issue
Block a user