mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Check input of isNumericAddress
This commit is contained in:
@@ -533,6 +533,9 @@ public class ConnectionHelper {
|
||||
}
|
||||
|
||||
static boolean isNumericAddress(String host) {
|
||||
// IPv4-mapped IPv6 can be 45 characters
|
||||
if (host == null || host.length() > 64)
|
||||
return false;
|
||||
return ConnectionHelper.jni_is_numeric_address(host);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user