[all-commits] [llvm/llvm-project] 6ae0e6: Don't crash when given an empty input filename. (#...

Richard Smith via All-commits all-commits at lists.llvm.org
Thu Mar 5 12:50:25 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ae0e6d5fb2cff91f9aef9b19adbc144fe8d20ff
      https://github.com/llvm/llvm-project/commit/6ae0e6d5fb2cff91f9aef9b19adbc144fe8d20ff
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    A clang/test/Driver/empty_arg.c
    M llvm/lib/Option/OptTable.cpp

  Log Message:
  -----------
  Don't crash when given an empty input filename. (#184718)

Commands such as `clang -- ''` hit two different crash bugs: a buffer
overflow caused by using a `memcmp` that might be larger than the input,
and a bogus assert in the option parser when attempting typo correction.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list