Files
gristlabs_grist-core/app/client/components
Dmitry S 2b581ab7dc (core) Fix issue with lodash's map interpreting objects with length as array-like
Summary:
Here's a series of badness that easily leads to a crash, in reverse order:
- Lodash's map() function interprets an object with a .length property as an array.
- Some very old code generated human-friendly descriptions of user actions,
  applying map() to parts of them. It so happens that this generated description
  isn't even used.
- If a user action is encountered with a sufficiently large length propery,
  map() would exhaust the server memory.

Fixed by removing old unneeded code, and replacing some other occurrences of
lodash's map() with native equivalents.

Test Plan: Tested manually on a local reproduction of the issue.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3938
2023-07-01 21:07:39 -04:00
..
2023-04-12 01:58:48 -04:00
2023-06-02 17:59:22 +02:00
2023-01-03 12:33:34 +01:00
2020-10-02 13:24:21 -04:00
2021-05-25 21:14:49 +02:00
2020-10-02 13:24:21 -04:00
2023-04-12 01:58:48 -04:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2023-04-12 01:58:48 -04:00
2023-06-02 17:59:22 +02:00
2020-10-02 13:24:21 -04:00
2023-06-02 17:59:22 +02:00
2022-07-04 10:42:40 -04:00
2023-05-15 12:01:19 -04:00
2023-04-20 12:20:03 -04:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2023-06-02 17:59:22 +02:00
2023-01-19 09:46:59 +01:00
2023-03-02 11:22:49 +01:00
2020-10-02 13:24:21 -04:00
2023-03-27 14:12:52 -04:00
2023-04-12 01:58:48 -04:00
2023-03-02 11:22:49 +01:00
2020-10-02 13:24:21 -04:00
2023-03-02 11:22:49 +01:00
2020-10-02 13:24:21 -04:00