Files
swift-mirror/validation-test/compiler_crashers_fixed/Lexer-lexOperatorIdentifier-01ba47.swift
Rintaro Ishizaki 44009a2b7a [Parser] Fix buffer overrun in rangeContainsPlaceholderEnd
The loop condition `SubStr != End - 1` caused a buffer overrun when
`CurPtr` starts at or past `End`. Use '<' instead.
2026-03-09 18:37:16 -07:00

8 lines
376 B
Swift

// {"kind":"typecheck","original":"48b7f3ec","signature":"swift::Lexer::lexOperatorIdentifier()","useGuardMalloc":true}
// RUN: %empty-directory(%t)
// RUN: echo -n '><#' > %t/main.swift
// RUN: env DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib not %target-swift-frontend -typecheck %t/main.swift
// REQUIRES: OS=macosx
// REQUIRES: no_asan
// REQUIRES: target-same-as-host