Skip to content

Tokenizer not rejecting unsupported newlines in strings and other binary fragments #15261

@lukaszsamson

Description

@lukaszsamson

Elixir and Erlang/OTP versions

Erlang/OTP 28 [erts-16.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.20.0-rc.4 (603602e) (compiled with Erlang/OTP 28)

Operating system

any

Current behavior

ASCII fast path in

extract([Char1, Char2 | Rest], Buffer, Output, Line, Column, Scope, Interpol, Last)

does not reject unsupported newlines
Compare that to correct code in
[Char | _] when ?bidi(Char); ?break(Char) ->

Expected behavior

Unsupported newlines rejected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions