-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
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
Segmentation fault with String.filter_map
#162
Labels
forwarded-to-js-devs
This report has been forwarded to Jane Street's internal review system.
Comments
Confirming: same behavior with OCaml 5.1.0 |
The let () =
let open Stdlib.Printf in
let s = " dlkjelkdje -d e E? dei !! " in
let s2 = "dlkjelkdje -d e E? dei !! " in
printf "mapi: %S\n%!" (sanitize_mapi s);
printf "mapi: %S\n%!" (sanitize_mapi s2);
printf "map: %S\n%!" (sanitize_map s2);
printf "map: %S\n%!" (sanitize_map s);
()
|
github-iron
added
the
forwarded-to-js-devs
This report has been forwarded to Jane Street's internal review system.
label
Feb 5, 2024
Hi, thanks for your report! The issue should be fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I see a bunch of
unsafe_get
& co in the implementation so I try here before bothering ocaml/ocaml)OCaml 5.0.0, Base v0.16.3
Noticed the
[@nontail]
in the implementation ofString.filter_map
so I also triedString.filter_mapi
which does not segfault but still seems to add a\000
character (???).Reproduction:
Haven't tried with OCaml 5.1 (yet)
The text was updated successfully, but these errors were encountered: