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:
a17ed84
)
fix crash in hb_map_t::clear()
author
Michiharu Ariza
<ariza@adobe.com>
Wed, 20 Feb 2019 20:43:18 +0000
(12:43 -0800)
committer
Michiharu Ariza
<ariza@adobe.com>
Wed, 20 Feb 2019 20:43:18 +0000
(12:43 -0800)
in case called immediately after init()
src/hb-map.hh
patch
|
blob
|
history
diff --git
a/src/hb-map.hh
b/src/hb-map.hh
index
02d5406
..
fd5c6d8
100644
(file)
--- a/
src/hb-map.hh
+++ b/
src/hb-map.hh
@@
-170,7
+170,8
@@
struct hb_map_t
void clear ()
{
- memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
+ if (items)
+ memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
population = occupancy = 0;
}