mirror of
https://github.com/mirror/wget.git
synced 2025-03-05 23:30:35 +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)
|
if (j == 0)
|
||||||
{
|
{
|
||||||
perms = 0;
|
perms = 0;
|
||||||
j = 1;
|
|
||||||
}
|
}
|
||||||
else
|
else if (j < 4)
|
||||||
{
|
{
|
||||||
perms <<= 3;
|
perms <<= 3;
|
||||||
}
|
}
|
||||||
|
j++;
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
perms |= 4;
|
perms |= 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user