[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode confusables and reordering characters considered harmful
From: |
Eli Zaretskii |
Subject: |
Re: Unicode confusables and reordering characters considered harmful |
Date: |
Wed, 03 Nov 2021 15:46:35 +0200 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Stefan Kangas <stefan@marxist.se>, Eli Zaretskii <eliz@gnu.org>,
> Clément Pit-Claudel <cpitclaudel@gmail.com>,
> emacs-devel@gnu.org
> Date: Wed, 03 Nov 2021 08:20:01 -0400
>
> I was more worried about the fact that, while highlighting those chars
> might be helpful to warn about accidental uses of them, if attackers
> want to trick the reader, I'm pretty sure they can get similar results
> without having to use those special LTR/RTL override chars:
>
> int hi = 5;
> int שָׁלוֹם = hi;
> int hello = 10;
> int السّلامعليك = hello;
> myfun(שָׁלוֹם ,السّلامعليكم)
>
> There's no override here, but did I call `myfun` with args 5 and 10 or
> did I call it with args 10 and 5?
If we want, we can detect such cases as well. It's quite easy,
actually, because the display engine has that information handy.
- Re: Unicode confusables and reordering characters considered harmful, (continued)
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Gregory Heytings, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Stefan Kangas, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Gregory Heytings, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Stefan Monnier, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, tomas, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, tomas, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, tomas, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful,
Eli Zaretskii <=
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Gregory Heytings, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Gregory Heytings, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Gregory Heytings, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Manuel Giraud, 2021/11/03
- Re: Unicode confusables and reordering characters considered harmful, Eli Zaretskii, 2021/11/03