Skip to content

[Bug]: raw_log type is string but can contain invalid UTF-8 #22414

@fmorency

Description

@fmorency

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

The raw_log field of TxResponse in abci.proto is of string type. The string type, as defined by the Protocol Buffer 3 Language specification 1,

A string must always contain UTF-8 encoded or 7-bit ASCII text, and cannot be longer than 232`.

However, the CosmosSDK can encode raw_log containing invalid UTF-8 strings, as shown in 2.

Cosmos SDK Version

0.50.8

How to reproduce?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions