You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlattenException itself has a protectection against deeply nested array structures ... but it doesn't have any protection against both wide and deep arrays.
Example case: Drupal uses arrays to store its form structures, as it turns out, that in case
a big form structure, is part of an exception, the FlattenException code needs too much time and
memory, so PHP fatals out, see https://www.drupal.org/node/2386571
The text was updated successfully, but these errors were encountered:
…hner)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#13004).
Discussion
----------
add a limit and a test to FlattenExceptionTest.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #13003
| License | MIT
| Doc PR |
Commits
-------
c6bcf05 add a limit and a test to FlattenExceptionTest.
FlattenException itself has a protectection against deeply nested array structures ... but it doesn't have any protection against both wide and deep arrays.
Example case: Drupal uses arrays to store its form structures, as it turns out, that in case
a big form structure, is part of an exception, the FlattenException code needs too much time and
memory, so PHP fatals out, see https://www.drupal.org/node/2386571
The text was updated successfully, but these errors were encountered: