Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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