crypto-inventory 0.4.0: Swift and Kotlin detectors (CryptoKit, CommonCrypto, Security.framework, Android Keystore, Tink, OkHttp, the libsignal Swift and Android APIs), Apple and Android manifests; remediation recipes for Apache and HAProxy measured on real servers, HAProxy precondition fixed

This commit is contained in:
Aere Network committed 2026-10-18 08:53:13 +03:00
1 parent e453c0c42d
commit b6ed4d2b71
37 files changed
+1623 -82

No files matched your search

+7
View File
@@ -172,6 +172,13 @@ function rezolvaOData(ctx, nume) {
const m = new RegExp(`^\\s*(?:(?:const|var)\\s+)?${e}\\s*(?:string\\s*)?(?::=|=)\\s*"([^"\\n\\\\]*)"\\s*$`).exec(c.slice(ls, le));
return !parametru && m ? { valoare: m[1], line: ctx.poz(k).line } : null;
}
// 0.4.0 (2026-10-18): Kotlin `val X = "..."` / `const val X = "..."`, Swift `let X = "..."`; un parametru `X: String` in paranteze
// nu se rezolva; un sir cu $ (sablon) sau \( (interpolare) nu e un literal simplu
if (ctx.limbaj === 'kotlin' || ctx.limbaj === 'swift') {
parametru = new RegExp(`\\(([^()]{0,2000}(?<![\\w.])${e}\\s*:\\s*String\\b[^()]{0,2000})\\)`).test(c);
const m = new RegExp(`\\b(?:val|var|let)\\s+${e}\\s*(?::\\s*String\\s*)?=\\s*"([^"\\n\\\\$]*)"\\s*;?\\s*$`).exec(linie);
return !parametru && m ? { valoare: m[1], line: ctx.poz(k).line } : null;
}
return null;
}