Comments (2)
I suspect the linkage isn't setup the way wac/wace is expecting so the libc memset is being called with an invalid pointer. I've only tested C programs built the way I describe in the README.md (using a recent version of binaryen and emscripten). I.e. like this:
emcc $(CFLAGS) -s WASM=1 -s SIDE_MODULE=1 -s LEGALIZE_JS_FFI=0 prog.c -o prog.wasm
The prebuilt sha1sum.wasm file in vmir was built using clang/llvm via LLVM IR form. I would actually have been surprised if that worked without tweaks. It's probably something that we want to get working although I won't have time to work on this any time in the near future although I would be happy to take a pull request and answer specific questions about why wac/wace work the way they do.
from wac.
Ok, thanks for the response. :)
from wac.
Related Issues (15)
- -Wformat error HOT 4
- Use wast2json instead for generating tests? HOT 2
- Any plans to allow x64 (amd64) builds? HOT 6
- performance?
- Multiple heap-buffer-overflow vulnerabilities in interpret HOT 7
- Multiple heap-buffer-overflow in load_module HOT 1
- heap-buffer-overflow in setup_call
- Dynamic memory allocation and sandboxing HOT 3
- DoS in wace
- cannot pull kanaka/emscripten from docker hub HOT 1
- Arm support? HOT 5
- wac crashes
- examples cannot stat wasm files HOT 7
- Windows build download link
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wac.