davidgranstrom / losc

Open Sound Control (OSC) for lua/luajit
MIT License
21 stars 2 forks source link

Value of 'false' in the middle of message breaks packing #27

Closed s-ol closed 3 years ago

s-ol commented 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:

losc.new_message { address = '/', types='iFi', 1, false 2 }

davidgranstrom commented 3 years ago

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.