Commit 4e8083ec authored by Paul Eggert's avatar Paul Eggert

Fix arbitrary INT_MAX limit on referrer repr

* src/pdumper.c (print_paths_to_root_1):
Don’t assume strlen (repr) < INT_MAX.
parent 5f32ac13
......@@ -1405,7 +1405,8 @@ print_paths_to_root_1 (struct dump_context *ctx,
Lisp_Object repr = Fprin1_to_string (referrer, Qnil);
for (int i = 0; i < level; ++i)
fputc (' ', stderr);
fprintf (stderr, "%s\n", SDATA (repr));
fwrite (SDATA (repr), 1, SBYTES (repr), stderr);
fputc ('\n', stderr);
print_paths_to_root_1 (ctx, referrer, level + 1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment