Skip to content
This repository was archived by the owner on May 27, 2020. It is now read-only.
This repository was archived by the owner on May 27, 2020. It is now read-only.

Crash when moving cursor in Ex Command Menu #111

@GChicha

Description

@GChicha

I made a test to reproduce the error described in onivim/oni2#1554

  describe("CommandLineError", ({test, _}) =>
    test("simple command line", ({expect}) => {
      let _ = reset();
      input(":");
      expect.int(CommandLine.getPosition()).toBe(0);

      input("e");
      expect.int(CommandLine.getPosition()).toBe(1);

      input(" ");
      expect.int(CommandLine.getPosition()).toBe(2);

      input("<Left>");
      expect.int(CommandLine.getPosition()).toBe(1);

      expect.int(Array.length(CommandLine.getCompletions())).toBe(20);
    })
  );

The output got from previous test is the following

SUMMARY: AddressSanitizer: negative-size-param /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cc:476 in __interceptor_strncpy

I will try to submit a PR if I manage to solve

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions