Comments (2)
Fixed. The compiler was inserting a runtime slice bounds check based on the length of the slice instead of the capacity - as it should have been according to the spec. Apparently *bytes.Buffer
reslices an internal buffer outside of the length but inside the capacity, surfacing this bug.
I've also made a few other changes to the compiler that should make it easier to detect this error (by executing a WebAssembly unreachable
instruction on such errors) and I made sure the custom Docker image with a custom wasm.syms file should not be necessary anymore. You can see the build status here: https://hub.docker.com/r/tinygo/tinygo/builds/
from tinygo.
Thanks again for the report, these are the kind of bugs that need to be fixed to make TinyGo stable.
from tinygo.
Related Issues (20)
- Error while compiling http proxy server into wasm
- IsExported undefined (type reflect.Method has no field or method IsExported)
- "Uncaught (in promise) TypeError: wasm function signature contains illegal type" in chrome 84
- What kind of GC is `-gc=precise`?
- TinyGo for ESP32 on Windows 10 - not compiling HOT 3
- lld: `inline asm clobber` warnings when building a program for the RP2040
- please build darwin/arm64 binary
- Cannot read properties of undefined (reading 'exports') HOT 1
- tinygo_01
- reflex panic: bootstrap type wrong id: mapType mapType not <nil>
- docs: Update compatibility matrix to include Go 1.21 HOT 2
- Board Support: ESP32-C6 HOT 2
- Documentation is terrible HOT 8
- [QUESTION] Is there USB Host support in TinyGo? HOT 1
- Support PN532 NFC peripheral HOT 1
- reflect: setting an interface value HOT 3
- export and extern not working HOT 9
- tinygo uses wrong go version HOT 3
- `bytes.Equal` shouldn't allocate HOT 3
- error while importing time: package sync/atomic is not in std HOT 2
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 tinygo.