Wireshark-bugs: [Wireshark-bugs] [Bug 13017] Lua dissector crashes on "string.format("%s", tree.

Date: Sat, 15 Oct 2016 11:14:24 +0000

Comment # 2 on bug 13017 from
(In reply to Jaap Keuter from comment #1)
> See the very last section (2.11) of README.dissector[1], which states that
> tree may be NULL and your code has to work either way.
> 
> [1]
> https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=doc/
> README.dissector

This README is for writing dissectors in C, not Lua. Even if you would pass
`nil` to string.format that doesn't cause a crash in standard Lua interpreter.
The bug here seems to break Lua safety - you can't dereference invalid pointer
in Lua, this is only possible when there's a bug in its engine or in
Wireshark's extensions.


You are receiving this mail because:
  • You are watching all bug changes.