From fa4873ccfc10e0f278dc46f39d00136fab059b19 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 30 Jun 2022 22:13:59 +0100 Subject: 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. --- src/globals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/globals.h') diff --git a/src/globals.h b/src/globals.h index 888f6e95d..ad563e4e9 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1654,6 +1654,7 @@ EXTERN int reset_term_props_on_termresponse INIT(= FALSE); 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 -- cgit v1.2.1