summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-01-20 15:34:25 +0100
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-01-20 15:34:25 +0100
commit2348fbb83afe70842a62cc9c033dd303f590bd80 (patch)
tree2a2b603e5dda0ebf785331f91a727dbe4a2c0283
parente09c80f273ea5d682f633309c4c512bff3e59bbd (diff)
downloadlanes-2348fbb83afe70842a62cc9c033dd303f590bd80.tar.gz
lanes-2348fbb83afe70842a62cc9c033dd303f590bd80.tar.bz2
lanes-2348fbb83afe70842a62cc9c033dd303f590bd80.zip
Turn potential malicious-crafted code crashes into normal Lua errors
* bump version to 3.8.1 * new function lane:get_debug_threadname() * Fix invalid memory accesses when fetching the name of a joined lane with lanes:threads() (because its lua_State is closed) * use luaL_newmetatable() to create the metatable for lane objects * prevent malicious code from crashing by calling lane methods without passing the lane as first argument (raise an error instead) * set_debug_threadname() is no longer registered in the function lookup databases because it holds a C pointer as upvalue and it might crash if used maliciously
-rw-r--r--index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.html b/index.html
index da37cef..7078b13 100644
--- a/index.html
+++ b/index.html
@@ -70,7 +70,7 @@
70 </p> 70 </p>
71 71
72 <p> 72 <p>
73 This document was revised on 20-Jan-14, and applies to version <tt>3.8.0</tt>. 73 This document was revised on 20-Jan-14, and applies to version <tt>3.8.1</tt>.
74 </p> 74 </p>
75 </font> 75 </font>
76 </center> 76 </center>
@@ -630,7 +630,9 @@
630 </table> 630 </table>
631 631
632<p> 632<p>
633 Each lane also gets a function <tt>set_debug_threadname()</tt> that it can use anytime to do as the name says. Supported debuggers are Microsoft Visual Studio (for the C side) and Decoda (for the Lua side). 633 Each lane also gets a global function <tt>set_debug_threadname()</tt> that it can use anytime to do as the name says. Supported debuggers are Microsoft Visual Studio (for the C side) and Decoda (for the Lua side).
634 <br/>
635 Starting with version 3.8.1, the lane has a new method <tt>lane:get_debug_threadname()</tt> that gives access to that name from the caller side (returns <tt>"&lt;unnamed&gt;"</tt> if unset, <tt>"&lt;closed&gt;"</tt> if the internal Lua state is closed).
634</p> 636</p>
635 637
636<p> 638<p>