HF RL Explorer

Out-of-Memory DoS via extremely large array index in JSON Pointer operations

Out-of-Memory DoS via extremely large array index in JSON Pointer operations: a task in LegoFlow-SWE (Harbor dataset). When using json pointer set (or related functions) with a JSON Pointer path that contains a very large array index (e.g., "/4444444444" ), the library attempts to allocate memory…

The task

When using `json_pointer_set` (or related functions) with a JSON Pointer path that contains a very large array index (e.g., `"/4444444444"`), the library attempts to allocate memory proportional to that index. This triggers an enormous `realloc` that can cause the operating system’s Out-Of-Memory killer to terminate…

Part of Lego-X/LegoFlow-SWE.