mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-03 15:31:23 -05:00
3f473d210d
file.open read a project with read_file, which reserves the size the file reports and then reads to the end. On an overcommitting system a multi-gigabyte or sparse file that claims a huge size commits memory until the process is killed. The bounded reader already exists for exactly this; projects now use it with a 1 GiB limit, as does the new-project template. Media imports already refuse oversized and non-regular files.