patch 9.0.0013: reproducing memory access errors can be difficult
Problem: Reproducing memory access errors can be difficult.
Solution: When testing, copy each line to allocated memory, so that valgrind
can detect accessing memory before and/or after it. Fix uncovered
problems.
diff --git a/src/globals.h b/src/globals.h
index 888f6e9..ad563e4 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1654,6 +1654,7 @@
EXTERN int disable_vterm_title_for_testing INIT(= FALSE);
EXTERN long override_sysinfo_uptime INIT(= -1);
EXTERN int override_autoload INIT(= FALSE);
+EXTERN int ml_get_alloc_lines INIT(= FALSE);
EXTERN int in_free_unref_items INIT(= FALSE);
#endif