Limit object filename lengths. #1415

This commit is contained in:
Christoffer Lerno
2024-09-07 23:38:20 +02:00
parent d4fb5b747b
commit 1502c6d660
2 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
- "optsize" did not work correctly in project.json.
- `l[0].a = 1` now supported for overloads due to better lvalue handling #1357.
- Asserts are retained regardless of optimization when running tests.
- Limit object filename lengths. #1415
### Stdlib changes
- Additional init functions for hashmap.

View File

@@ -64,6 +64,11 @@ const char *module_create_object_file_name(Module *module)
break;
}
}
if (scratch_buffer.len > 128)
{
scratch_buffer.len = 128;
scratch_buffer_printf("@%X", module);
}
return scratch_buffer_to_string();
}