Skip to content

[3.13] backport #9811#9924

Merged
emillon merged 3 commits intoocaml:3.13from
emillon:backport-9811
Feb 5, 2024
Merged

[3.13] backport #9811#9924
emillon merged 3 commits intoocaml:3.13from
emillon:backport-9811

Conversation

@emillon
Copy link
Copy Markdown
Collaborator

@emillon emillon commented Feb 5, 2024

@emillon emillon mentioned this pull request Feb 5, 2024
15 tasks
Signed-off-by: Etienne Millon <me@emillon.org>
`Io.read_all` and related functions read the contents of a file in a
string, which has a size limit (`Sys.max_string_length`) and can be an
issue in 32-bit systems. This makes an explicit check and raises a
`Code_error` in these situations.

Signed-off-by: Etienne Millon <me@emillon.org>
Fixes ocaml#9538

This logs a warning for large files (>16MB on 32-bit systems).

Signed-off-by: Etienne Millon <me@emillon.org>
@emillon emillon merged commit a7d49bd into ocaml:3.13 Feb 5, 2024
@emillon emillon deleted the backport-9811 branch February 5, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant