mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-06 04:41:18 -08:00
wasm: Removes accidentally exported memory (#2950)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -245,7 +245,6 @@ func newWASMPlugin(ctx context.Context, r wazero.Runtime, code []byte) (*wasmMod
|
||||
|
||||
// Instantiate a Go-defined module named "env" that exports functions.
|
||||
_, err := r.NewModuleBuilder("env").
|
||||
ExportMemory("mem", 100).
|
||||
ExportFunctions(exportFunctions).
|
||||
Instantiate(ctx, ns)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user