[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: |
Wed, 06 Apr 2022 11:19:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Mattias Engdegård <mattiase@acm.org> writes:
> I agree that is desirable. If a strict parse is impractical (not sure if it
> is), what about something slightly stricter than what we current have? Here
> is a straw-man proposal:
>
> (rx-let ((octet (or "0" (: (in "1-9") (? (in "0-9") (? (in "0-9"))))))
> (ipv4 (: octet (= 3 "." octet)))
> (hextet (** 1 4 (in "0-9a-f")))
> (ipv6 (: (? "::") hextet (* ":" (? ":") hextet)
> (? (or "::" (: ":" ipv4) )))))
> (rx bos (or ipv4 ipv6 (: "[" ipv6 "]")) eos))
Skimming that, it seems a bit too strict, but perhaps I'm misreading it.
> and don't forget to bind case-fold-search to nil while calling string-match-p
> since IPv6 specifies lower-case hex digits.
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.
(And most resolvers will accept upper-case hex digits just fine.)
--
(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 <=
- 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, 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