Skip to content

P3 taskReturn incorrectly assumes that parameters are passed in memory #1076

@cpetig

Description

@cpetig

I know that support for P3 isn't completed, but perhaps a nicely self contained example can help debugging this remaining issue.

A function returning result<s32, string> will call [task-return][async]N with three flattened integer parameters (the result enum index, the number or an string address, zero or the string length). The current code assumes that the parameters are passed in memory and thus fails to correctly lift them.

jco_async_bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions