Skip to content

Incorrect detection of BOM in text with little endian UTF32 encoding #225

Open
@mtillmann0

Description

@mtillmann0

There seems to be a bug in the BOM detection for the UTF32 little endian code path:
https://github.com/antlr/antlr3/blob/master/runtime/C/src/antlr3filestream.c#L235

Note that nextChar+1 is compared three times instead of +1, +2 and +3.

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