[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54624: 29.0.50; textsec and ipv6 addresses
From: |
Mattias Engdegård |
Subject: |
bug#54624: 29.0.50; textsec and ipv6 addresses |
Date: |
Wed, 6 Apr 2022 15:28:10 +0200 |
6 apr. 2022 kl. 11.19 skrev Lars Ingebrigtsen <larsi@gnus.org>:
> Skimming that, it seems a bit too strict, but perhaps I'm misreading it.
In what way is it too strict? I can't make it less strict unless you tell me.
> Again, we're not trying to create a strict validator here. We're just
> saying something about suspiciousness -- invalid addresses aren't, in
> and of themselves, suspicious.
That's fine, but "suspicious" is quite subjective and I need your help to
define it better if I'm to write a simulator of your suspicion.
Here is a new attempt, simplified a bit:
(rx-let ((octet (** 1 3 (in "0-9")))
(ipv4 (: octet (= 3 "." octet)))
(hextet (** 1 4 (in "0-9a-f")))
(ipv6 (: (? "::") hextet (* (or ":" "::") hextet)
(? ":" (or ":" ipv4)))))
(string-match-p (rx bos (or ipv4 ipv6 (: "[" ipv6 "]")) eos)
domain)))
We could simplify it further and relax the requirement on octets and hextets
(which seems to be what they are called, rather incongruously) but then it
wouldn't catch what you previously thought were suspicious.
- bug#54624: 29.0.50; textsec and ipv6 addresses, (continued)
bug#54624: 29.0.50; textsec and ipv6 addresses, Lars Ingebrigtsen, 2022/04/03
- bug#54624: 29.0.50; textsec and ipv6 addresses, Mattias Engdegård, 2022/04/03
- bug#54624: 29.0.50; textsec and ipv6 addresses, Andreas Schwab, 2022/04/03
- bug#54624: 29.0.50; textsec and ipv6 addresses, Lars Ingebrigtsen, 2022/04/04
- bug#54624: 29.0.50; textsec and ipv6 addresses, Mattias Engdegård, 2022/04/04
- bug#54624: 29.0.50; textsec and ipv6 addresses, Robert Pluim, 2022/04/04
- bug#54624: 29.0.50; textsec and ipv6 addresses, Lars Ingebrigtsen, 2022/04/06
- bug#54624: 29.0.50; textsec and ipv6 addresses,
Mattias Engdegård <=
- bug#54624: 29.0.50; textsec and ipv6 addresses, Lars Ingebrigtsen, 2022/04/07
- bug#54624: 29.0.50; textsec and ipv6 addresses, Mattias Engdegård, 2022/04/07
- bug#54624: 29.0.50; textsec and ipv6 addresses, Andreas Schwab, 2022/04/07
- bug#54624: 29.0.50; textsec and ipv6 addresses, Mattias Engdegård, 2022/04/08
- bug#54624: 29.0.50; textsec and ipv6 addresses, Andreas Schwab, 2022/04/08
- bug#54624: 29.0.50; textsec and ipv6 addresses, Mattias Engdegård, 2022/04/08
bug#54624: 29.0.50; textsec and ipv6 addresses, Mattias Engdegård, 2022/04/11
bug#54624: 29.0.50; textsec and ipv6 addresses, Lars Ingebrigtsen, 2022/04/11