We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems In_channel.input_all cannot read more than 65536 bytes, but I would have expected to be able to read much higher amounts:
$ ocamlopt --version 4.14.0+dev4-2022-01-20 $ cat h.ml let () = ignore @@ In_channel.input_all stdin $ ocamlopt -o h h.ml $ head -c 65537 /dev/urandom | ./h Fatal error: exception Invalid_argument("index out of bounds")
The text was updated successfully, but these errors were encountered:
Thanks for the report! There is an embarrasing bug in the implementation of input_all, will be fixed in #10978.
input_all
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It seems In_channel.input_all cannot read more than 65536 bytes, but I would have expected to be able to read much higher amounts:
$ ocamlopt --version
4.14.0+dev4-2022-01-20
$ cat h.ml
let () =
ignore @@ In_channel.input_all stdin
$ ocamlopt -o h h.ml
$ head -c 65537 /dev/urandom | ./h
Fatal error: exception Invalid_argument("index out of bounds")
The text was updated successfully, but these errors were encountered: