[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c57a03c75e9 10/11: Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfo
From: |
Paul Eggert |
Subject: |
master c57a03c75e9 10/11: Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfont.c |
Date: |
Tue, 30 Apr 2024 04:26:38 -0400 (EDT) |
branch: master
commit c57a03c75e91a42c49a293a9466b087a1e1592da
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfont.c
* src/hbfont.c (hbfont_shape): Add an eassume.
---
src/hbfont.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hbfont.c b/src/hbfont.c
index 40bb44c7d04..37ed4132492 100644
--- a/src/hbfont.c
+++ b/src/hbfont.c
@@ -552,6 +552,8 @@ hbfont_shape (Lisp_Object lgstring, Lisp_Object direction)
cluster_offset = to - from;
}
+ eassume (0 <= from);
+
/* All the glyphs in a cluster have the same values of FROM and TO. */
LGLYPH_SET_FROM (lglyph, from);
/* This heuristic is for when the Lisp shape-gstring function
- master updated (d24981d27ce -> aad80e1934f), Paul Eggert, 2024/04/30
- master 7e2309c6fc6 02/11: etags: fix #line parsing (\\", long lines), Paul Eggert, 2024/04/30
- master de59c02c685 01/11: Simplify etags.c by omitting a macro, Paul Eggert, 2024/04/30
- master ca4f0705be5 03/11: etags: work around GCC bug 114882, Paul Eggert, 2024/04/30
- master 62c2afe8410 05/11: Pacify GCC 14 -Wnull-dereference, Paul Eggert, 2024/04/30
- master 98d0fc989a0 04/11: Pacify GCC 14 -Walloc-size, Paul Eggert, 2024/04/30
- master c2b2a38f70f 07/11: Pacify GCC 14 -Wnull-dereference in tim_sort, Paul Eggert, 2024/04/30
- master aad80e1934f 11/11: Work around bad GCC diagnostic in select_window, Paul Eggert, 2024/04/30
- master 750dbccc124 08/11: Pacify GCC 14 -Wnull-dereference in intervals.c, Paul Eggert, 2024/04/30
- master c57a03c75e9 10/11: Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfont.c,
Paul Eggert <=
- master 59a11116e01 09/11: Pacify GCC 14 -Wstring-operflow in ftfont.c, Paul Eggert, 2024/04/30
- master 009a6ba71ea 06/11: Pacify GCC 14 -Wclobbered in eval.c, Paul Eggert, 2024/04/30