patch 8.1.0565: asan complains about reading before allocated block
Problem: Asan complains about reading before allocated block.
Solution: Workaround: Avoid offset from becoming negative.
diff --git a/src/gui.c b/src/gui.c
index 6154b48..b961108 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -2753,7 +2753,8 @@
}
else if (enc_utf8)
{
- if (ScreenLines[off + col1] == 0)
+ // FIXME: how can the first character ever be zero?
+ if (col1 > 0 && ScreenLines[off + col1] == 0)
--col1;
# ifdef FEAT_GUI_GTK
if (col2 + 1 < Columns && ScreenLines[off + col2 + 1] == 0)
diff --git a/src/version.c b/src/version.c
index bc44242..e4f863e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 565,
+/**/
564,
/**/
563,