Skip to content

AddressSanitizer: SEGV src/ast/validate.cc:49 in re2c::validate_ast(std::vector<re2c::spec_t, std::allocator<re2c::spec_t> > const&, bool) #227

Description

@fgeek

Tested commit: c432c5c
Tools: american fuzzy lop 2.52b, afl-utils
re2c-2018-11-04-001.zip

ASAN:DEADLYSIGNAL
=================================================================
==16818==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x5585338c21d4 bp 0x7fff26ad70f0 sp 0x7fff26ad7080 T0)
    #0 0x5585338c21d3 in re2c::validate_ast(std::vector<re2c::spec_t, std::allocator<re2c::spec_t> > const&, bool) src/ast/validate.cc:49
    #1 0x558533823362 in re2c::compile(re2c::Scanner&, re2c::Output&, re2c::Opt&) src/compile.cc:165
    #2 0x55853361c5f9 in main src/main.cc:31
    #3 0x7f5b809ea2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
    #4 0x55853361d709 in _start (/home/afl/builds/re2c/c432c5c34c60a9e450714a7d1d5c39b34c9fd0a0/bin/re2c+0x1e709)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV src/ast/validate.cc:49 in re2c::validate_ast(std::vector<re2c::spec_t, std::allocator<re2c::spec_t> > const&, bool)
==16818==ABORTING
(gdb) list
44          }
45
46          if (!cflag) {
47              for (i = b; i != e; ++i) {
48                  if (i->name != "") {
49                      fatal_l(i->rules[0].code->fline,
50                          "conditions are only allowed with '-c', '--conditions' option");
51                  }
52              }
53          } else {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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