[
https://issues.apache.org/jira/browse/AVRO-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ismaël Mejía resolved AVRO-4281.
--------------------------------
Resolution: Duplicate
Superseded by AVRO-4298. The collection block-count cap for [php] has been
folded into that issue's fix (PR https://github.com/apache/avro/pull/3863),
which now provides a single complete protection against collection allocation
DoS: available-bytes validation, a heap-aware cap for zero-byte-element
collections, a structural cap, and bounded skip paths. Resolving this as a
duplicate/superseded; the PR here (closed) is superseded by #3863.
> [php] Bound collection size when decoding arrays and maps
> ---------------------------------------------------------
>
> Key: AVRO-4281
> URL: https://issues.apache.org/jira/browse/AVRO-4281
> Project: Apache Avro
> Issue Type: Sub-task
> Components: php
> Affects Versions: 1.11.5, 1.12.1
> Reporter: Ismaël Mejía
> Assignee: Ismaël Mejía
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.2
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> {{AvroIODatumReader::readArray()}} and {{readMap()}} in
> {{lang/php/lib/Datum/AvroIODatumReader.php}} loop over the block count read
> from input without any bound; the block size is read and ignored.
> Add a configurable maximum collection length, validated per block and
> cumulatively, and raise an appropriate {{AvroException}} when exceeded. Add a
> corresponding test.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)