diff --git a/xwords4/android/XWords4/jni/anddict.c b/xwords4/android/XWords4/jni/anddict.c index 4213c3cc1..759e1bda3 100644 --- a/xwords4/android/XWords4/jni/anddict.c +++ b/xwords4/android/XWords4/jni/anddict.c @@ -320,7 +320,7 @@ parseDict( AndDictionaryCtxt* ctxt, XP_U8* ptr, XP_U32 dictLength ) andLoadSpecialData( ctxt, &ptr ); dictLength -= ptr - (XP_U8*)mappedBase; - if ( dictLength > sizeof(XP_U32) ) { + if ( dictLength >= sizeof(offset) ) { offset = n_ptr_tohl( &ptr ); dictLength -= sizeof(offset); #ifdef NODE_CAN_4