Files
craft-anything/docs
Nicolas Bohn ba83da2bc5 Refuse source maps with more entries than the parser keeps (R3.12) (#1703)
The source-map parser read the whole JSON into a value and then copied every sources, sourcesContent and names entry, so a 64 MiB map of empty strings built about 21 million strings twice before anything was checked. It now reads only the fields it uses, straight from the JSON, and counts every sources, sourcesContent, names and ignore-list entry against one limit (2,000,000 by default) shared across sections; a map with more is refused with TooManyEntries as soon as the limit is passed, without reading the rest.
2026-11-12 02:17:19 +07:00
..
2026-10-31 10:52:14 -04:00
2026-10-31 10:52:14 -04:00
2026-10-31 10:52:14 -04:00