alloverse / alloui-lua

UI library for building Alloverse apps in Lua
2 stars 1 forks source link

Bug: alloui/allonet crashes on some asset API when any app receives a drag&drop #28

Closed nevyn closed 2 years ago

Voxar commented 2 years ago

Found it!

  1. Lua trying to get length of nil because apps correctly sent nil data to signal that they don't have the asset, but ffi rewrite totally forgot to check that. Solution: use a separate method on lua side to signal that app doesn't have the asset.
  2. assertion crashes if asset requests an offset+length that is > total_size. Solution: Respond with an error instead of crashing