Skip to content

scc (rax & 0xffffffff) #562

Closed as not planned
Closed as not planned
@endeav0r

Description

@endeav0r

The following code:

int main (uint64_t a) {
	return a & 0xffffffff;
}

When compiled with scc for x86_64 linux, produces:

push rbp
mov rbp, rsp
and rax, 0xffffffffffffffff
leave
retn

The expected result is:

push rbp
mov rbp, rsp
and rax, 0xffffffff
leave
retn

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SCCIssue needs changes to the shellcode compilerImpact: LowIssue is a papercut or has a good, supported workaroundType: BugIssue is a non-crashing bug with repro steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions