Skip to content

x86 relocation is applied incorrectly to 0 in %xmm0 #208

@1superchip

Description

@1superchip

https://decomp.me/scratch/WASEq

Image

Relocs should not be applied to 0 in %xmm0.

Problematic regex / code:

        # Example %edi,0
        # Example movb $0x0,0x0
        if not addr_imm:
            addr_imm = re.search(r"(?:0x)?(?<![1-9])0$", args)

Just testing on regex101, adding \b to the beginning of the regex prevents capturing the 0 in %xmm0. https://regex101.com/r/UWEmrC/1
Not sure if this would cause any issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions