-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allocate afl_area_initial dynamically #10117
Comments
Instrumented code produced by `ocamlopt -afl-instrument` but not run under AFL needs a 64 k dummy buffer at run-time. Before, this buffer was allocated statically, and therefore present in all ocamlopt-generated executables, whether compiled with `-afl-instrument` or without, whether AFL was selected at configuration-time or not. This commit implements dynamic allocation of the AFL buffer when an AFL-instrumented executable starts. It is based on the proposal at ocaml#10167 and its discussion. Fixes: ocaml#10117 Closes: ocaml#10167
I have a fix in some branch somewhere. Will come back to it after the Multicore merge. |
It's in your afl-dynamic-allocation branch, apparently 🙂 |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Instrumented code produced by `ocamlopt -afl-instrument` but not run under AFL needs a 64 k dummy buffer at run-time. Before, this buffer was allocated statically, and therefore present in all ocamlopt-generated executables, whether compiled with `-afl-instrument` or without, whether AFL was selected at configuration-time or not. This commit implements dynamic allocation of the AFL buffer when an AFL-instrumented executable starts. It is based on the proposal at ocaml#10167 and its discussion. Fixes: ocaml#10117 Closes: ocaml#10167
Instrumented code produced by `ocamlopt -afl-instrument` but not run under AFL needs a 64 k dummy buffer at run-time. Before, this buffer was allocated statically, and therefore present in all ocamlopt-generated executables, whether compiled with `-afl-instrument` or without, whether AFL was selected at configuration-time or not. This commit implements dynamic allocation of the AFL buffer when an AFL-instrumented executable starts. It is based on the proposal at ocaml#10167 and its discussion. Fixes: ocaml#10117 Closes: ocaml#10167
Instrumented code produced by `ocamlopt -afl-instrument` but not run under AFL needs a 64 k dummy buffer at run-time. Before, this buffer was allocated statically, and therefore present in all ocamlopt-generated executables, whether compiled with `-afl-instrument` or without, whether AFL was selected at configuration-time or not. This commit implements dynamic allocation of the AFL buffer the first time an AFL-instrumented module runs its initialization code. It is based on the proposal at ocaml#10167 and its discussion. Fixes: ocaml#10117 Closes: ocaml#10167
As noted in #10107 (comment), the runtime reserves 64KB for AFL, regardless of whether it's used or even supported.
Assuming it doesn't affect the operation of AFL,
caml_setup_afl
should allocate the buffer dynamically on first call.The text was updated successfully, but these errors were encountered: