When the string was longer than the size limit, the loop would continue as the unsigned size would wrap around 0 to SIZE_MAX, and subsequently segfault on the out-of-bounds access. Use ssize_t for the size variable. Regression introduced in f35d66dbc228bc8ad2c5255dee1bf4ecf9ee6e06.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||