Skip to content

Cothread beyond version 2.18.2 can break long string handling in affected servers #53

@Araneidae

Description

@Araneidae

Commit 1ec3579 of PR #32 changes the behaviour of puts to "long strings" (arrays of char) so that a trailing null is no longer sent. This makes the length of the string (as reported by .NORD) truthful, but unfortunately can trigger bugs in string length calculations in certain servers.

Either cothread should unconditionally append an extra null (making all strings one character longer than is truthful) or this could be done conditionally on something like an environment variable.

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