Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psl: fix newline boundary search in relation reformatting #3457

Merged
merged 1 commit into from
Dec 1, 2022

Commits on Dec 1, 2022

  1. psl: fix newline boundary search in relation reformatting

    When adding an @relation attribute to a forward relation field in the
    relation reformatting code that deals with adding missing relation
    fields and attributes, we searched for the last character before a
    newline to check whether it is a carriage return, but we failed to
    check whether the byte offset was a char boundary first. This caused
    crashes.
    
    closes prisma/prisma#14895
    tomhoule committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    a3e1d2f View commit details
    Browse the repository at this point in the history