[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54624: 29.0.50; textsec and ipv6 addresses
From: |
Lars Ingebrigtsen |
Subject: |
bug#54624: 29.0.50; textsec and ipv6 addresses |
Date: |
Thu, 07 Apr 2022 13:04:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Mattias Engdegård <mattiase@acm.org> writes:
> 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)))
I don't really read rx syntax well, but that seems reasonable to me on
first sight.
> 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.
You misunderstand -- the function wasn't introduced to say something
about (certain) raw addresses being suspicious. It was introduced to
say that they aren't.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- 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, 2022/04/06
- bug#54624: 29.0.50; textsec and ipv6 addresses,
Lars Ingebrigtsen <=
- 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