[Libreoffice-commits] core.git: external/lpsolve
Stephan Bergmann
sbergman at redhat.com
Wed Jun 18 04:27:16 PDT 2014
external/lpsolve/UnpackedTarball_lpsolve.mk | 1 +
external/lpsolve/lpsolve-ubsan.patch.0 | 11 +++++++++++
2 files changed, 12 insertions(+)
New commits:
commit e7e39d396913b002bdf9f76643f59108d849f392
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jun 18 13:26:50 2014 +0200
Avoid undefined out-of-range conversions from double to unsigned char
Change-Id: I7cf4af81d477865aa0a93c8aa071a8785677c572
diff --git a/external/lpsolve/UnpackedTarball_lpsolve.mk b/external/lpsolve/UnpackedTarball_lpsolve.mk
index 464fcab..3d17c0e 100644
--- a/external/lpsolve/UnpackedTarball_lpsolve.mk
+++ b/external/lpsolve/UnpackedTarball_lpsolve.mk
@@ -26,6 +26,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,lpsolve,\
external/lpsolve/lp_solve-aix.patch \
external/lpsolve/lp_solve-fixed-warn.patch \
external/lpsolve/lp_solve_5.5.patch \
+ external/lpsolve/lpsolve-ubsan.patch.0 \
))
$(eval $(call gb_UnpackedTarball_add_file,lpsolve,lpsolve55/ccc.static,external/lpsolve/ccc.static))
diff --git a/external/lpsolve/lpsolve-ubsan.patch.0 b/external/lpsolve/lpsolve-ubsan.patch.0
new file mode 100644
index 0000000..29e9ad3
--- /dev/null
+++ b/external/lpsolve/lpsolve-ubsan.patch.0
@@ -0,0 +1,11 @@
+--- lp_pricePSE.c
++++ lp_pricePSE.c
+@@ -145,7 +147,7 @@
+
+ /* Store the active/current pricing type */
+ if(isdual == AUTOMATIC)
+- isdual = (MYBOOL) lp->edgeVector[0];
++ isdual = lp->edgeVector[0] != 0.0;
+ else
+ lp->edgeVector[0] = isdual;
+
More information about the Libreoffice-commits
mailing list