[HB] Fix bug introduced recently
This commit is contained in:
parent
bff3c0fde5
commit
7f96b39a9d
|
@ -148,7 +148,7 @@ _hb_sanitize_init (hb_sanitize_context_t *context,
|
||||||
|
|
||||||
#if HB_DEBUG
|
#if HB_DEBUG
|
||||||
fprintf (stderr, "sanitize %p init [%p..%p] (%u bytes)\n",
|
fprintf (stderr, "sanitize %p init [%p..%p] (%u bytes)\n",
|
||||||
context->blob, context->start, context->end, context->start - context->end);
|
context->blob, context->start, context->end, context->end - context->start);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ _hb_sanitize_edit (hb_sanitize_context_t *context,
|
||||||
#define SANITIZE_MEM(B,L) \
|
#define SANITIZE_MEM(B,L) \
|
||||||
HB_LIKELY (context->start <= CONST_CHARP(B) && \
|
HB_LIKELY (context->start <= CONST_CHARP(B) && \
|
||||||
CONST_CHARP(B) < context->end && \
|
CONST_CHARP(B) < context->end && \
|
||||||
context->end - CONST_CHARP(B) < (L))
|
context->end - CONST_CHARP(B) >= (L))
|
||||||
|
|
||||||
#define NEUTER(Var, Val) \
|
#define NEUTER(Var, Val) \
|
||||||
(SANITIZE_OBJ (Var) && \
|
(SANITIZE_OBJ (Var) && \
|
||||||
|
|
Loading…
Reference in New Issue