Skip to content

Extremely long SPDX comment results in a segfault #12208

@agroce

Description

@agroce

Description

segfault.zip

The attached contract produces:

../build/solc/solc segfault.sol
Segmentation fault

when compiled with solc

On master, using AFL fuzzing. Another discovery using https://github.com/agroce/afl-compiler-fuzzer

Environment

  • Compiler version: 0.8.10-develop.2021.10.27+commit.7ebf71f3.Linux.clang
  • Target EVM version (as per compiler settings): N/A
  • Framework/IDE (e.g. Truffle or Remix): N/A
  • EVM execution environment / backend / blockchain client: N/A
  • Operating system: Ubuntu 20.04 in docker

Steps to Reproduce

Above shows pretty clearly, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛good first issue candidateCould be a "good first issue" but something is blocking it or it has open questions.low impactChanges are not very noticeable or potential benefits are limited.medium difficultymedium effortDefault level of effortshould compile without errorError is reported even though it shouldn't. Source is fine.should haveWe like the idea but it’s not important enough to be a part of the roadmap.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions