<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/lua-github.git/llex.c, branch v5.4.2</title>
<subtitle>github.com: lua/lua.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/'/>
<entry>
<title>Comments</title>
<updated>2020-10-22T18:54:46+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-10-22T18:54:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=d742a193e57029d973aff0a5eb04d8ddd03fa0ff'/>
<id>d742a193e57029d973aff0a5eb04d8ddd03fa0ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Detail</title>
<updated>2020-09-15T17:29:52+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-09-15T17:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=98ec7995912af0aaaf9a97c5bc1be17e9b601af9'/>
<id>98ec7995912af0aaaf9a97c5bc1be17e9b601af9</id>
<content type='text'>
Code for multi-character tokens can start right after maximum char.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Code for multi-character tokens can start right after maximum char.
</pre>
</div>
</content>
</entry>
<entry>
<title>Changed internal representation of booleans</title>
<updated>2020-01-06T14:38:31+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-01-06T14:38:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=5ff408d2189c6c24fdf8908db4a31432bbdd6f15'/>
<id>5ff408d2189c6c24fdf8908db4a31432bbdd6f15</id>
<content type='text'>
Instead of an explicit value (field 'b'), true and false use different
tag variants. This avoids reading an extra field and results in more
direct code. (Most code that uses booleans needs to distinguish between
true and false anyway.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of an explicit value (field 'b'), true and false use different
tag variants. This avoids reading an extra field and results in more
direct code. (Most code that uses booleans needs to distinguish between
true and false anyway.)
</pre>
</div>
</content>
</entry>
<entry>
<title>Details</title>
<updated>2019-08-01T17:11:33+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-01T17:11:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=35a28a58b38fb90cbe7c9596d60af2b3c1bd52a3'/>
<id>35a28a58b38fb90cbe7c9596d60af2b3c1bd52a3</id>
<content type='text'>
- removed rule about RCS from makefile
- comments and nitpicking in 'llex.c'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- removed rule about RCS from makefile
- comments and nitpicking in 'llex.c'
</pre>
</div>
</content>
</entry>
<entry>
<title>Details</title>
<updated>2019-06-03T14:36:42+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-03T14:36:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=2c68e66570206aa1496f9c76fcf2a1a0f550d692'/>
<id>2c68e66570206aa1496f9c76fcf2a1a0f550d692</id>
<content type='text'>
Several small changes from feedback on 5.4 alhpa rc1 (warnings,
typos in the manual, and the like)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Several small changes from feedback on 5.4 alhpa rc1 (warnings,
typos in the manual, and the like)
</pre>
</div>
</content>
</entry>
<entry>
<title>A few more improvements in 'luaO_pushvfstring'</title>
<updated>2019-05-03T13:18:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-03T13:18:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=7c5786479c1d617ec7c133f2c2b955726436267a'/>
<id>7c5786479c1d617ec7c133f2c2b955726436267a</id>
<content type='text'>
- 'L' added to the 'BuffFS' structure
- '%c' does not handle control characters (it is not its business.
This now is done by the lexer, who is the one in charge of that
kind of errors.)
- avoid the direct use of 'l_sprintf' in the Lua kernel
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 'L' added to the 'BuffFS' structure
- '%c' does not handle control characters (it is not its business.
This now is done by the lexer, who is the one in charge of that
kind of errors.)
- avoid the direct use of 'l_sprintf' in the Lua kernel
</pre>
</div>
</content>
</entry>
<entry>
<title>Syntax should not allow numbers touching identifiers</title>
<updated>2019-04-09T21:40:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-04-09T21:40:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=65d1aa7a779b30bf5b0e7b968b3980b702b08b2c'/>
<id>65d1aa7a779b30bf5b0e7b968b3980b702b08b2c</id>
<content type='text'>
Code like 'a = 1print()' should not be accepted.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Code like 'a = 1print()' should not be accepted.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed small bugs/issues</title>
<updated>2019-03-25T13:38:56+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-03-25T13:38:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=7ceb2154ed69170f3e47f7a5a840e543c7c6ed3d'/>
<id>7ceb2154ed69170f3e47f7a5a840e543c7c6ed3d</id>
<content type='text'>
- In 'readutf8esc' (llex.c), the overflow check must be done before
shifting the accumulator. It was working because tests were using
64-bit longs. Failed with 32-bit longs.

- In OP_FORPREP (lvm.c), avoid negating an unsigned value. Visual
Studio gives a warning for that operation, despite being well
defined in ISO C.

- In 'luaV_execute' (lvm.c), 'cond' can be defined only when needed,
like all other variables.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- In 'readutf8esc' (llex.c), the overflow check must be done before
shifting the accumulator. It was working because tests were using
64-bit longs. Failed with 32-bit longs.

- In OP_FORPREP (lvm.c), avoid negating an unsigned value. Visual
Studio gives a warning for that operation, despite being well
defined in ISO C.

- In 'luaV_execute' (lvm.c), 'cond' can be defined only when needed,
like all other variables.
</pre>
</div>
</content>
</entry>
<entry>
<title>Changes in the validation of UTF-8</title>
<updated>2019-03-15T16:14:17+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-03-15T16:14:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=1e0c73d5b643707335b06abd2546a83d9439d14c'/>
<id>1e0c73d5b643707335b06abd2546a83d9439d14c</id>
<content type='text'>
All UTF-8 encoding functionality (including the escape
sequence '\u') accepts all values from the original UTF-8
specification (with sequences of up to six bytes).

By default, the decoding functions in the UTF-8 library do not
accept invalid Unicode code points, such as surrogates. A new
parameter 'nonstrict' makes them accept all code points up to
(2^31)-1, as in the original UTF-8 specification.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All UTF-8 encoding functionality (including the escape
sequence '\u') accepts all values from the original UTF-8
specification (with sequences of up to six bytes).

By default, the decoding functions in the UTF-8 library do not
accept invalid Unicode code points, such as surrogates. A new
parameter 'nonstrict' makes them accept all code points up to
(2^31)-1, as in the original UTF-8 specification.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug: Long brackets with a huge number of '=' causes overflow</title>
<updated>2018-12-14T15:12:01+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2018-12-14T15:12:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=57f5b81da9f1f23380d20f164012e10c5f4fef94'/>
<id>57f5b81da9f1f23380d20f164012e10c5f4fef94</id>
<content type='text'>
A long bracket with too many equal signs can overflow the 'int' used for
the counting and some arithmetic done on the value. Changing the counter
to 'size_t' avoids that. (Because what is counted goes to a buffer, an
overflow in the counter will first raise a buffer-overflow error.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A long bracket with too many equal signs can overflow the 'int' used for
the counting and some arithmetic done on the value. Changing the counter
to 'size_t' avoids that. (Because what is counted goes to a buffer, an
overflow in the counter will first raise a buffer-overflow error.)
</pre>
</div>
</content>
</entry>
</feed>
