[PATCH] usp10: Filter out DeltaFormat == 0 too, valid range is [1, 3].
Nikolay Sivov
nsivov at codeweavers.com
Wed Feb 22 03:14:50 CST 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
fefd15118fa643c16a34be889baf79cda1768a0f is incomplete, wouldn't catch 0 format.
dlls/usp10/opentype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/usp10/opentype.c b/dlls/usp10/opentype.c
index 1ad9c39305..6c63d955e2 100644
--- a/dlls/usp10/opentype.c
+++ b/dlls/usp10/opentype.c
@@ -1498,7 +1498,7 @@ static INT GPOS_get_device_table_value(const OT_DeviceTable *DeviceTable, WORD p
TRACE("device table, format %#x, index %i\n", format, index);
- if (format & ~0x3)
+ if (format < 1 || format > 3)
{
WARN("invalid delta format %#x\n", format);
return 0;
--
2.11.0
More information about the wine-patches
mailing list