mirror of
https://github.com/apple/swift.git
synced 2026-10-16 16:50:49 +02:00
The loop condition `SubStr != End - 1` caused a buffer overrun when `CurPtr` starts at or past `End`. Use '<' instead.
8 lines
376 B
Swift
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
|