Skip to content

Fix unit tests to match our style and conventions.

9dd4db6
Select commit
Loading
Failed to load commit list.
Open

Merged server capacity logic #780

Fix unit tests to match our style and conventions.
9dd4db6
Select commit
Loading
Failed to load commit list.
Mend for GitHub.com / Mend Code Security Check failed Jan 2, 2026 in 2m 42s

Code Security Report

New findings (4)

The Code Security Check detected a total of 4 new findings.

SeverityVulnerability TypeCWEFileData FlowsDetected
HighInsecure Directory Permissions

CWE-732

block_cache.go:1320

12025-10-28 08:08pm
Vulnerable Code

}
}
defer root.Close()
// Create directory structure if not exists
err = os.MkdirAll(filepath.Dir(localPath), 0755)

1 Data Flow/s detected

err = os.MkdirAll(filepath.Dir(localPath), 0755)

Secure Code Warrior Training Material
 
HighInsecure Directory Permissions

CWE-732

block_cache.go:1827

12025-10-28 08:08pm
Vulnerable Code

goto return_safe
}
defer root.Close()
// Create directory structure if not exists
err = os.MkdirAll(filepath.Dir(localPath), 0755)

1 Data Flow/s detected

err = os.MkdirAll(filepath.Dir(localPath), 0755)

Secure Code Warrior Training Material
 
HighInsecure Directory Permissions

CWE-732

block_cache.go:1298

12025-10-28 08:08pm
Vulnerable Code

if bc.tmpPath != "" {
root, err := os.OpenRoot(bc.tmpPath)
localPath := filepath.Join(bc.tmpPath, fileName)
if err != nil {
err := os.MkdirAll(bc.tmpPath, 0755)

1 Data Flow/s detected

err := os.MkdirAll(bc.tmpPath, 0755)

Secure Code Warrior Training Material
 
HighInsecure Directory Permissions

CWE-732

block_cache.go:1803

12025-10-28 08:08pm
Vulnerable Code

bc.threadPool.Schedule(false, item)
return
}
if bc.tmpPath != "" {
err := os.MkdirAll(bc.tmpPath, 0755)

1 Data Flow/s detected

err := os.MkdirAll(bc.tmpPath, 0755)

Secure Code Warrior Training Material

Resolved findings (8)

With your last commit you resolved 8 findings.

SeverityVulnerability TypeCWEFileData FlowsDetected
HighInsecure Directory Permissions

CWE-732

block_cache.go:1803

12025-04-15 08:44pm
HighInsecure Directory Permissions

CWE-732

block_cache.go:1320

12025-08-15 09:38pm
HighInsecure Directory Permissions

CWE-732

block_cache.go:1298

12025-08-15 09:38pm
HighInsecure Directory Permissions

CWE-732

block_cache.go:1827

12025-08-15 09:38pm
LowWeak Hash Strength

CWE-916

block_blob.go:983

12025-05-16 10:36pm
LowWeak Hash Strength

CWE-916

block_blob.go:972

12025-05-16 10:36pm
LowWeak Hash Strength

CWE-916

block_blob.go:988

12025-05-16 10:36pm
LowWeak Hash Strength

CWE-916

block_blob.go:987

12025-05-16 10:36pm

Overall findings

The Code Security Check detected a total of 14 findings, 8 of them high severity. More details about the overall state can be found in the Mend Application.


Scan token: ef90f9de58ee4ed4b425a2cc87f131dc