diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-09-25 22:28:58 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-09-25 22:28:58 -0400 |
commit | f48dd40db06d15e5da7fd3a98324e284a0640b2d (patch) | |
tree | e8cc2a9fc7622e77f9ee1950aef5bdaf2a42ea1e /indra/llmath | |
parent | 339107e4a3260c5ad564cb0325d94d166a27a8a5 (diff) |
DRTVWR-589: Fix Lua table to LLSD array conversion.
The previous implementation assumed that the Lua length function would
correctly report the number of entries in a table, and that traversing a table
with integer keys would produce them in numeric order. Neither assumption is
true. Instead, make a preliminary pass to validate and collect indexes, and to
discover the highest integer index. Armed with that, we can construct a
contiguous LLSD array of correct size, and populate it with a second pass.
Also add Lua-callable post_on_pump(pumpname, datablob) function.
Diffstat (limited to 'indra/llmath')
0 files changed, 0 insertions, 0 deletions