<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hello, Sergey,</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 12.08.2024 16:17, Sergey Kaplun
wrote:<br>
</div>
<p><br>
</p>
<p><snipped></p>
<blockquote type="cite" cite="mid:ZroLWtT4v2v5izWS@root"><span
style="white-space: pre-wrap">
</span>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Also, please add here comment about `sizeof(buff) - 1` too.
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Please add a comment that the terminating '\0' is considered by parser
as part of the input, so we must chomp it.</pre>
</blockquote>
<p>Updated:</p>
<p><br>
</p>
<p>---
a/test/tarantool-c-tests/lj-1168-unmarked-finalizer-tab.test.c<br>
+++ b/test/tarantool-c-tests/lj-1168-unmarked-finalizer-tab.test.c<br>
@@ -89,6 +89,10 @@ unmarked_finalizer_tab_gcmark(void *test_state)<br>
/* Not trigger GC during `lua_openffi()`. */<br>
lua_gc(L, LUA_GCSTOP, 0);<br>
<br>
+ /*<br>
+ * The terminating '\0' is considered by parser as part of<br>
+ * the input, so we must chomp it.<br>
+ */<br>
int res = luaL_loadbufferx(L, buff, sizeof(buff) - 1,<br>
"test_chunk", "t");<br>
if (res != LUA_OK) {<br>
</p>
<blockquote type="cite" cite="mid:ZroLWtT4v2v5izWS@root">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
<snipped>
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>