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:
2bd2750
)
[serialize] Make putting breakpoint on out-of-memory easier
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 3 Apr 2019 22:48:27 +0000
(15:48 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 3 Apr 2019 22:48:27 +0000
(15:48 -0700)
src/hb-serialize.hh
patch
|
blob
|
history
diff --git
a/src/hb-serialize.hh
b/src/hb-serialize.hh
index
e1c283c
..
0d908bd
100644
(file)
--- a/
src/hb-serialize.hh
+++ b/
src/hb-serialize.hh
@@
-323,6
+323,9
@@
struct hb_serialize_context_t
return ret;
}
+ void
+ err_ran_out_of_room () { this->ran_out_of_room = true; }
+
template <typename Type>
Type *allocate_size (unsigned int size)
{
@@
-330,7
+333,7
@@
struct hb_serialize_context_t
if (this->tail - this->head < ptrdiff_t (size))
{
-
this->ran_out_of_room = true
;
+
err_ran_out_of_room ()
;
this->successful = false;
return nullptr;
}