mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
debt - silence CodeQL warnings (#203031)
This commit is contained in:
parent
9555d9dfff
commit
ecb6dd684e
|
@ -410,6 +410,6 @@ export class BackupMainService implements IBackupMainService {
|
|||
key = folderUri.toString().toLowerCase();
|
||||
}
|
||||
|
||||
return createHash('md5').update(key).digest('hex');
|
||||
return createHash('md5').update(key).digest('hex'); // CodeQL [SM04514] Using MD5 to convert a file path to a fixed length
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ export function getWorkspaceIdentifier(configPath: URI): IWorkspaceIdentifier {
|
|||
configPathStr = configPathStr.toLowerCase(); // sanitize for platform file system
|
||||
}
|
||||
|
||||
return createHash('md5').update(configPathStr).digest('hex');
|
||||
return createHash('md5').update(configPathStr).digest('hex'); // CodeQL [SM04514] Using MD5 to convert a file path to a fixed length
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -50,7 +50,7 @@ export function getSingleFolderWorkspaceIdentifier(folderUri: URI, folderStat?:
|
|||
|
||||
// Remote: produce a hash from the entire URI
|
||||
if (folderUri.scheme !== Schemas.file) {
|
||||
return createHash('md5').update(folderUri.toString()).digest('hex');
|
||||
return createHash('md5').update(folderUri.toString()).digest('hex'); // CodeQL [SM04514] Using MD5 to convert a file path to a fixed length
|
||||
}
|
||||
|
||||
// Local: we use the ctime as extra salt to the
|
||||
|
@ -77,7 +77,7 @@ export function getSingleFolderWorkspaceIdentifier(folderUri: URI, folderStat?:
|
|||
}
|
||||
}
|
||||
|
||||
return createHash('md5').update(folderUri.fsPath).update(ctime ? String(ctime) : '').digest('hex');
|
||||
return createHash('md5').update(folderUri.fsPath).update(ctime ? String(ctime) : '').digest('hex'); // CodeQL [SM04514] Using MD5 to convert a file path to a fixed length
|
||||
}
|
||||
|
||||
const folderId = getFolderId();
|
||||
|
|
Loading…
Reference in a new issue