[cairo-commit] src/cairo-cff-subset.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Mon Aug 22 08:09:30 PDT 2011
src/cairo-cff-subset.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit ba1060fbbc62bd364d65787bb0c88281c67a534a
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Aug 23 00:32:51 2011 +0930
cff-subset: fix decoding of real numbers
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index 71465bb..fde3665 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -300,8 +300,10 @@ decode_real (unsigned char *p, double *real)
buf = decode_nibble (n, buf);
n = *p & 0x0f;
buf = decode_nibble (n, buf);
- if ((*p & 0x0f) == 0x0f)
+ if ((*p & 0x0f) == 0x0f) {
+ p++;
break;
+ }
p++;
};
*buf = 0;
More information about the cairo-commit
mailing list