filter/source/msfilter/util.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d4d56060eeba4dd78c518e4e1728396efab67962 Author: Caolán McNamara <caol...@redhat.com> Date: Wed Nov 6 13:43:28 2013 +0000 make WW8ReadFieldParams::GetResult safe as shown by kde239121-4.doc Change-Id: I60356e7d76cc271869079f2fffa00e149274a8cc diff --git a/filter/source/msfilter/util.cxx b/filter/source/msfilter/util.cxx index 5646e23..828d5de 100644 --- a/filter/source/msfilter/util.cxx +++ b/filter/source/msfilter/util.cxx @@ -490,7 +490,7 @@ OUString WW8ReadFieldParams::GetResult() const return OUString(); else { - return nSavPtr == -1 ? aData.copy(nFnd) : aData.copy(nFnd, nSavPtr-nFnd); + return nSavPtr < nFnd ? aData.copy(nFnd) : aData.copy(nFnd, nSavPtr-nFnd); } }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits