Skip to content

yylex.h uses unitialized memory #618

Open

Description

@marcespie

On most operating systems, malloc(3) tends to give you zero-filled memory at first.
Not so on OpenBSD! In some cases, the dance between yytext and savedyytext happens BEFORE either of these contains any actual data, thus leading to unterminated strcpy that leads to a segfault.

diff.txt

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