Skip to content

[6.2.x] Add validation for WireFormatInfo (#2080)#2081

Merged
cshannon merged 1 commit into
apache:activemq-6.2.xfrom
cshannon:backport-2080-6.2.x
Jun 5, 2026
Merged

[6.2.x] Add validation for WireFormatInfo (#2080)#2081
cshannon merged 1 commit into
apache:activemq-6.2.xfrom
cshannon:backport-2080-6.2.x

Conversation

@cshannon
Copy link
Copy Markdown
Contributor

@cshannon cshannon commented Jun 5, 2026

The max number of properties in the map for the WireFormatInfo command was lowered to 64 and a new max value buffer size was added to validate buffers created during unmarshalling of the properties map. The max buffer allowed has been set to 512 bytes.

This also adds a maxDepth check for handling nested collections inside the map. It is set to 0 which will block list/map from being used as a value for a property.

(cherry picked from commit 6fc46e5)

The max number of properties in the map for the WireFormatInfo
command was lowered to 64 and a new max value buffer size was
added to validate buffers created during unmarshalling of the properties
map. The max buffer allowed has been set to 512 bytes.

This also adds a maxDepth check for handling nested collections inside
the map. It is set to 0 which will block list/map from being used as
a value for a property.

(cherry picked from commit 6fc46e5)
@cshannon cshannon self-assigned this Jun 5, 2026
@cshannon cshannon changed the title Add validation for WireFormatInfo (#2080) [6.2.x] Add validation for WireFormatInfo (#2080) Jun 5, 2026
@cshannon cshannon merged commit e25f9b8 into apache:activemq-6.2.x Jun 5, 2026
3 of 4 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Apache ActiveMQ v6.2.7 Jun 5, 2026
@cshannon cshannon deleted the backport-2080-6.2.x branch June 5, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

1 participant