HF RL Explorer

String class uses signed int for lengths and indices, causing unsafe behavior with large buffers and…

String class uses signed int for lengths and indices, causing unsafe behavior with large buffers and…: a task in LegoFlow-SWE (Harbor dataset). Description The String class currently uses signed int for string lengths, capacities, and index parameters/return values in many methods. This leads to…

The task

**Description** The `String` class currently uses signed `int` for string lengths, capacities, and index parameters/return values in many methods. This leads to incorrect behavior and potentially unsafe edge cases, particularly when dealing with large buffers (where lengths may exceed `INT_MAX`) or when index…

Part of Lego-X/LegoFlow-SWE.