Akihiko Komada
3562dab445
fix(lua-rockspec): handle empty and whitespace-only rockspec files gracefully ( #4827 )
...
Empty or whitespace-only .rockspec files cause parseRockspecBlock to
panic with "index out of range" because the existing end-of-data guard
requires len(out) > 0 before returning the "unexpected end of block"
error, letting the bare data[*i] access on the next line crash.
Split the guard so that:
- partial content at end of data still returns the existing error
- empty data (or whitespace-only) returns an empty block cleanly
Closes #4824 .
Signed-off-by: Akihiko Komada <aki1770@gmail.com>
2026-04-24 12:44:25 -04:00
..
2026-04-24 12:44:25 -04:00
2025-11-10 16:29:06 -05:00
2023-10-30 12:12:04 -04:00
2026-04-15 10:01:39 -04:00
2025-12-12 19:13:59 +00:00
2025-10-03 17:01:56 +00:00
2024-01-22 15:54:51 -05:00
2025-10-03 17:01:56 +00:00
2025-05-13 16:37:18 -04:00
2025-04-21 13:41:39 -04:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-12-18 13:38:47 -05:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-03-11 10:34:37 -04:00
2021-09-17 09:06:12 -04:00
2026-04-15 10:01:39 -04:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2024-02-07 11:26:23 -05:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2024-10-18 14:47:02 -04:00
2024-09-10 10:35:18 -04:00
2025-05-13 16:37:18 -04:00
2026-03-06 19:42:04 +00:00
2025-05-13 00:02:07 -04:00
2026-03-06 19:42:04 +00:00
2025-08-12 14:30:32 -04:00
2026-03-18 10:53:51 -04:00
2025-10-03 17:01:56 +00:00
2025-11-10 16:29:06 -05:00
2025-10-03 17:01:56 +00:00
2025-11-10 16:29:06 -05:00
2025-10-03 17:01:56 +00:00
2025-05-13 16:37:18 -04:00
2026-04-20 10:03:15 -04:00
2025-11-06 16:02:26 -05:00
2025-10-03 17:01:56 +00:00
2023-10-30 12:12:04 -04:00
2025-11-14 15:13:10 -05:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-05-15 16:01:00 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-10-03 17:01:56 +00:00
2025-11-13 17:43:48 -05:00
2025-11-13 17:43:48 -05:00
2025-10-28 09:35:11 -04:00
2025-10-03 17:01:56 +00:00