mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-10 14:50:50 -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.
|
// Instantiate a Go-defined module named "env" that exports functions.
|
||||||
_, err := r.NewModuleBuilder("env").
|
_, err := r.NewModuleBuilder("env").
|
||||||
ExportMemory("mem", 100).
|
|
||||||
ExportFunctions(exportFunctions).
|
ExportFunctions(exportFunctions).
|
||||||
Instantiate(ctx, ns)
|
Instantiate(ctx, ns)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user