Skip to content

[Go] the output is not passed to emitResult in scalarExecutor.executeSpans which may cause the function execute result is wrong #52

@bigwhite

Description

@bigwhite

Describe the bug, including details regarding any error messages, version, and platform.

When I read the code in executor.go, I found a maybe problem:

image

initially, output is a copy of prealloc. After some operation to output, the output may be different to prealloc, e.g. some slice header. (BufferSpan.Buf)

The code may pass the output to emitResult rather than the prealloc.

I'm not sure this is a real problem because I've no test case to produce the problem.

Component(s)

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions