Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

StackOverflow error in scodec lazily #95

@Jacarte

Description

@Jacarte

Hi @satabin

I was trying to decode/encode a large WASM module (here you can find it).

When I try to decode the binary swam launches a StackOverflow in this location

case OpCode.Block => block.decode(remainder).map(_.map(Block))
,
.encode(tpe ~ insts)
and here
blockType ~ lazily(expr)
. It seems to be an issue with the lazily option of scodec and the size of the recursion.

Any idea?

Thanks in advancne

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions