Skip to content

Stack Overflow in verify_transfer_with_fee_proof() due to excessive stack usage in Token2022 #216

@IaroslavMazur

Description

@IaroslavMazur

While compiling my Solana program via anchor b, I encountered the following stack overflow error related to the verify_transfer_with_fee_proof() function in Token2022:

Error: Function _ZN14spl_token_20229extension21confidential_transfer12verify_proof30verify_transfer_with_fee_proof17h4544cae11caa7615E Stack offset of 4392 exceeded max offset of 4096 by 296 bytes, please minimize large stack variables. Estimated function frame size: 4472 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.

Error: A function call in method _ZN14spl_token_20229extension21confidential_transfer12verify_proof30verify_transfer_with_fee_proof17h4544cae11caa7615E overwrites values in the frame. Please, decrease stack usage or remove parameters from the call.The function call may cause undefined behavior during execution.

Are there any plans to address this issue in Token2022?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions