Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yul compilation failed: Expected keyword \"data\" or \"object\" or \"}\". #230

Closed
agroce opened this issue Feb 3, 2021 · 1 comment
Closed

Comments

@agroce
Copy link

agroce commented Feb 3, 2021

Compiling this file:

contract o:
    pub def a():
        """"""""""""""""""
thread 'main' panicked at 'Yul compilation failed: {"errors":[{"component":"general","formattedMessage":"ParserError: Expected keyword \"data\" or \"object\" or \"}\".\n --> input.yul:1:4298:\n  |\n1 |  ... e26b92190113138f72403f6bc45c844\" \"\"\"\"\"\"\"\"\"\"\"\"\"\" } data \"0xb581cabea89bad ...\n  |                                         ^^\n\n","message":"Expected keyword \"data\" or \"object\" or \"}\".","severity":"error","sourceLocation":{"end":4299,"file":"input.yul","start":4297},"type":"ParserError"}]}', compiler/src/lib.rs:45:27
stack backtrace:
   0: rust_begin_unwind
             at /rustc/c0b64d97beebb09325b5587abed39f4f1621026f/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/c0b64d97beebb09325b5587abed39f4f1621026f/library/std/src/panicking.rs:435:5
   2: fe_compiler::compile
   3: fe::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Aborted

On latest github master, built with

[profile.dev]
debug = true
panic = "abort"

for fuzzing. Using https://github.com/agroce/afl-compiler-fuzzer

@sbillig
Copy link
Collaborator

sbillig commented Apr 26, 2021

This invalid syntax is caught by the new parser (#346)

@sbillig sbillig closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants