swim: check types in __serialize methods
In swim Lua code none of the __serialize methods checked the argument type assuming that nobody would call them directly and mess with the types. But it happened, and is not hard to fix, so the patch does it. The serialization functions are sanitized for the swim object, swim member, and member event. Closes #5952
Showing
- changelogs/unreleased/swim-serialize-crash.md 4 additions, 0 deletionschangelogs/unreleased/swim-serialize-crash.md
- src/lua/swim.lua 31 additions, 10 deletionssrc/lua/swim.lua
- test/swim/gh-5952-swim-serialize.result 101 additions, 0 deletionstest/swim/gh-5952-swim-serialize.result
- test/swim/gh-5952-swim-serialize.test.lua 33 additions, 0 deletionstest/swim/gh-5952-swim-serialize.test.lua
Loading
Please register or sign in to comment