Ethereal-cvs: [Ethereal-cvs] rev 17106: /trunk/plugins/lua/: lua_proto.c lua_tree.c lua_tvb.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 26 Jan 2006 20:20:58 GMT
User: lego
Date: 2006/01/26 02:20 PM

Log:
 * lua_tree.c
    * protect proto_item_add_* calls with a TRY CATCH to avoid the Lua state getting corrupted
    * new ProtoItem:add_expert_info() call
 
  * lua_proto.c
    * protect call_dissector() and dissector_try_*() calls with TRY CATCH to avoid the Lua state getting corrupted
    * ValueString makes no sense, get rid of it we'll use Lua's associative arrays instead
 
  * lua_tvb.c
    * while creating a tvb from a ByteArray copy the ByteArray's data and set the tvb's free_cb
    * check bounds before calling tvb_*() to avoid a longjmp breaking Lua
    * do not leak the string in Tvb_tostring()
    * new Tvb:get_ipv4() call
    * new Tvb:get_eth() call
 
  * packet-lua.[ch]
    * export lua_tvb and lua_malformed to other modules being the current tvb and the protocol_id of malformed
    * convert some Lua to C
    * do not register ValueString (eliminated)

Directory: /trunk/plugins/lua/
  Changes    Path            Action
  +80 -102   lua_proto.c     Modified
  +92 -62    lua_tree.c      Modified
  +104 -15   lua_tvb.c       Modified
  +76 -23    packet-lua.c    Modified
  +6 -4      packet-lua.h    Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=17106&view=rev