tinygo/compiler/llvmutil
Ayke van Laethem 6ad631539d compiler: fix undefined behavior in wordpack
Previously, EmitPointerPack would generate an out-of-bounds read from an
alloca. This commit fixes that by creating an alloca of the appropriate
size instead of using the size of the to-be-packed data (which might be
smaller than a pointer).

I discovered this error while working on a rewrite of the interp
package, which checks for out-of-bounds reads and writes. There I
discovered this issue when the image package was compiled.
2020-12-22 15:54:23 +01:00
..
llvm.go compiler: refactor func lowering to the transform package 2019-12-04 22:19:49 +01:00
wordpack.go compiler: fix undefined behavior in wordpack 2020-12-22 15:54:23 +01:00