projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c81cff
)
[serialize] Minor
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 May 2019 19:45:38 +0000
(12:45 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 May 2019 19:45:38 +0000
(12:45 -0700)
src/hb-serialize.hh
patch
|
blob
|
history
diff --git
a/src/hb-serialize.hh
b/src/hb-serialize.hh
index
27c8c17
..
7e46df2
100644
(file)
--- a/
src/hb-serialize.hh
+++ b/
src/hb-serialize.hh
@@
-165,7
+165,7
@@
struct hb_serialize_context_t
/* Only "pack" if there exist other objects... Otherwise, don't bother.
* Saves a move. */
- if (packed.length
=
= 1)
+ if (packed.length
<
= 1)
return;
pop_pack ();
@@
-285,7
+285,10
@@
struct hb_serialize_context_t
void resolve_links ()
{
+ if (unlikely (in_error ())) return;
+
assert (!current);
+ assert (packed.length > 1);
for (const object_t *parent : ++hb_iter (packed))
{