projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a1111
)
Pacify GCC 14 -Wanalyzer-out-of-bounds in hbfont.c
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:20:13 +0000
(
01:20
-0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:26:24 +0000
(
01:26
-0700)
* src/hbfont.c (hbfont_shape): Add an eassume.
src/hbfont.c
patch
|
blob
|
history
diff --git
a/src/hbfont.c
b/src/hbfont.c
index 40bb44c7d04b87f132f45079e64cf4948d5c029a..37ed4132492e40786c474b8c9d121929fd46ab6c 100644
(file)
--- 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