Mark McCaskey
f8d34e0b57
Add WasmPtr access edge case test
2020-03-05 15:08:09 -08:00
Mark McCaskey
eb4c1bdace
Prevent 0 length utf8 strings from WasmPtr too
2020-03-05 13:31:37 -08:00
Mark McCaskey
1c6424a754
Fix WasmPtr to work with accesses accessing the final valid byte
...
This also returns `None` for all accesses of zero sized types and
arrays of length 0. Because the array accesses have a non-inclusive
length, length of 0 is not valid. These checks prevent returning
empty slices that point just outside of memory bounds.
2020-03-05 13:23:50 -08:00
Mark McCaskey
4a6c96382d
Update wording of doc comment from feedback
2020-03-03 17:04:52 -08:00
Mark McCaskey
469e43312a
Improve WasmPtr
documentation
2020-03-03 16:16:29 -08:00
Mark McCaskey
0a02f3bb97
Clean up misc. bits of runtime-core
2020-01-24 15:31:52 -08:00
Stephan Renatus
782be5b51a
Add function to get nul-terminated strings from memory
...
Fixes #1086 .
Signed-off-by: Stephan Renatus <srenatus@chef.io>
2019-12-20 21:53:08 +01:00
Brandon Fish
aad390d09d
Deny missing docs in runtime core and add missing docs
2019-11-10 13:13:18 -06:00
Mark McCaskey
882a77ccf9
Remove null pointer checks generally, re-add them in Emscripten
2019-09-20 12:02:12 -07:00
Mark McCaskey
5119f07ea3
implement wasi::readlink
2019-07-12 15:58:28 -07:00
Mark McCaskey
623bec001f
improve networking in emscripten
2019-07-01 16:36:30 -07:00
Mark McCaskey
4fcb3c4c83
improve emscripten sockets and networking
2019-06-28 17:14:00 -07:00
Mark McCaskey
b36783fc50
remove duplicated code, wrap WasmPtr on wasi side
2019-06-11 11:10:42 +02:00