Files
gristlabs_grist-core/app/common
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
..
2022-02-19 09:46:49 +00:00
2021-09-16 10:06:04 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2022-01-13 11:10:17 +01:00
2020-07-21 20:39:10 -04:00
2022-05-09 21:44:57 +02:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-10-17 13:38:21 +02:00
2023-05-19 13:06:15 -04:00
2022-08-25 12:38:36 -07:00
2023-04-12 01:58:48 -04:00
2020-07-21 20:39:10 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2023-06-02 17:59:22 +02:00
2023-01-16 16:50:42 -08:00
2020-07-21 20:39:10 -04:00
2022-03-12 14:34:46 -08:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2020-09-29 18:57:56 -04:00
2021-07-20 15:17:03 +02:00
2023-03-16 17:37:24 -04:00