Skip to content

Error in QAmqpFrame::readAmqpField for type ShortString #92

@robert-bruton

Description

@robert-bruton

In the ShortString case in QAmqpFrame::readAmqpField(...), the size of the string is read into a signed int (qint8 size = 0;)

This causes the string to be clipped to 127 characters when it is encoded with a quint8, which supports 256 characters.

This is noticeable because any topic (routingKey) longer than 127 characters is received as an empty string by a subscriber.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions