summaryrefslogtreecommitdiff
path: root/test/example/space.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fuzz fix for MemoryPacking on trampled data (#3222)Alon Zakai2020-10-151-0/+115
I believe originally wasm did not allow overlapping segments, that is, where one memory segment tramples the data from a previous one. But then the spec changed its mind and we allowed it. Binaryen seems to have assumed the original case, and not checked for trampling. If there is a chance of trampling, we cannot optimize out zeros - the zero may have an effect if it tramples data from a previous segment. This does not occur in practice in LLVM output, which is why this wasn't a problem so far, I think. An existing testcase hit this issue, so I split it up.