mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
1 parent
2422c4b96d
commit
258305c2a5
1 file changed
+1
-1
@@ -345,7 +345,7 @@ struct AnchorMatrix
|
||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int cols) {
|
||||
TRACE_SANITIZE ();
|
||||
if (!c->check_struct (this)) return false;
|
||||
if (unlikely (cols >= ((unsigned int) -1) / rows)) return false;
|
||||
if (unlikely (rows > 0 && cols >= ((unsigned int) -1) / rows)) return false;
|
||||
unsigned int count = rows * cols;
|
||||
if (!c->check_array (matrix, matrix[0].static_size, count)) return false;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
|
||||
Reference in new issue
Block a user