coverity#1222240 Untrusted value as argument
coverity#1222240 Untrusted value as argument

and

coverity#1222239 Untrusted value as argument

Change-Id: I48bacfd988a34d67ffa542edba7cba1bb9b0b3cc

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core