Files
tinygo/compiler
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
..
2020-04-21 08:54:39 +02:00
2020-04-21 08:54:39 +02:00
2020-04-13 16:07:35 +02:00
2020-03-25 20:17:46 +01:00
2020-03-25 20:17:46 +01:00