[all-commits] [llvm/llvm-project] c33486: [ASan] Change strdup interceptor to allow null inp...

Zack Johnson via All-commits all-commits at lists.llvm.org
Tue Jan 14 08:53:24 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c33486954bd1404495581e42ed62428fb7abeae9
      https://github.com/llvm/llvm-project/commit/c33486954bd1404495581e42ed62428fb7abeae9
  Author: Zack Johnson <zacklj89 at gmail.com>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  Changed paths:
    M compiler-rt/lib/asan/asan_interceptors.cpp
    A compiler-rt/test/asan/TestCases/Windows/msvc/strdup_null_input.cpp

  Log Message:
  -----------
  [ASan] Change strdup interceptor to allow null input on Windows (#122803)

[These are the MS
Docs](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/strdup-wcsdup-mbsdup?view=msvc-170)
regarding `strdup`, but they don't explicitly mention this. The SAL
annotations on `strdup` do, though, with the input parameter being
marked `_In_opt_z_`.



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