<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Thank you! While we are talking about special characters in source code already, would <span>Compiler-ct.462 be a good merge candidate as well? It detects and warns about
<a href="https://trojansource.codes/" class="OWAAutoLink">Trojan Source attacks</a>. :-)</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Eliot Miranda <eliot.miranda@gmail.com><br>
<b>Gesendet:</b> Freitag, 8. April 2022 16:21:31<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Compiler-ct.473.mcz</font>
<div> </div>
</div>
<div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
<blockquote type="cite">On Apr 8, 2022, at 1:13 AM, Marcel Taeumel <marcel.taeumel@hpi.de> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Christoph --
<div><br>
</div>
<div>+1</div>
<div><br>
</div>
<div>If we do not treat an NBSP as a delimiter, it could sneak into symbols without knowing or seeing it.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
+1
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 01.04.2022 18:41:18 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">A new version of Compiler was added to project The Inbox:
<br>
http://source.squeak.org/inbox/Compiler-ct.473.mcz <br>
<br>
==================== Summary ==================== <br>
<br>
Name: Compiler-ct.473 <br>
Author: ct <br>
Time: 1 April 2022, 6:41:06.522422 pm <br>
UUID: fa612011-d500-8946-a772-b460d0743c67 <br>
Ancestors: Compiler-eem.472 <br>
<br>
Proposal: Treat non-breaking space (16ra0) as delimiter in parser/scanner. <br>
<br>
Compiler evaluate: '2 +?3'. <br>
<br>
=============== Diff against Compiler-eem.472 =============== <br>
<br>
Item was changed: <br>
----- Method: Scanner class>>initializeTypeTable (in category 'initialization') -----
<br>
initializeTypeTable <br>
"self initializeTypeTable" <br>
<br>
| newTable | <br>
newTable := Array new: 256 withAll: #xBinary. "default" <br>
+ newTable atAll: #(9 10 12 13 32 16ra0) put: #xDelimiter. "tab lf ff cr space nbsp"
<br>
- newTable atAll: #(9 10 12 13 32 ) put: #xDelimiter. "tab lf ff cr space" <br>
newTable atAll: ($0 asciiValue to: $9 asciiValue) put: #xDigit. <br>
<br>
1 to: 255 <br>
do: [:index | <br>
(Character value: index) isLetter <br>
ifTrue: [newTable at: index put: #xLetter]]. <br>
<br>
newTable at: $" asciiValue put: #xDoubleQuote. <br>
newTable at: $# asciiValue put: #xLitQuote. <br>
newTable at: $$ asciiValue put: #xDollar. <br>
newTable at: $' asciiValue put: #xSingleQuote. <br>
newTable at: $: asciiValue put: #xColon. <br>
newTable at: $( asciiValue put: #leftParenthesis. <br>
newTable at: $) asciiValue put: #rightParenthesis. <br>
newTable at: $. asciiValue put: #period. <br>
newTable at: $; asciiValue put: #semicolon. <br>
newTable at: $[ asciiValue put: #leftBracket. <br>
newTable at: $] asciiValue put: #rightBracket. <br>
newTable at: ${ asciiValue put: #leftBrace. <br>
newTable at: $} asciiValue put: #rightBrace. <br>
newTable at: $^ asciiValue put: #upArrow. <br>
newTable at: $_ asciiValue put: #xUnderscore. <br>
newTable at: $| asciiValue put: #verticalBar. <br>
TypeTable := newTable "bon voyage!!"! <br>
<br>
<br>
</div>
</blockquote>
</div>
<span></span><br>
</div>
</blockquote>
</div>
</div>
</body>
</html>