Closed s-ol closed 3 years ago
The error is here: https://github.com/davidgranstrom/losc/blob/main/src/losc/message.lua#L206
if item is false the index doesn't advance and so the message becomes malformed. E.g:
item
false
index
losc.new_message { address = '/', types='iFi', 1, false 2 }
Thanks for the report! Fixed in #28, will merge once CI passes.
I'll do a bugfix release very soon, but until then the version on develop should handle this.
The error is here: https://github.com/davidgranstrom/losc/blob/main/src/losc/message.lua#L206
if
item
isfalse
theindex
doesn't advance and so the message becomes malformed. E.g:losc.new_message { address = '/', types='iFi', 1, false 2 }