Kaydet (Commit) c8346d77 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/coinmp: -fsanitize=nonnull-attribute

Change-Id: I487e772395defa9aae2ce3eb040b8c7d92720cb2
üst 42c178be
......@@ -26,6 +26,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,coinmp,\
) \
$(if $(filter MACOSX,$(OS)),external/coinmp/macosx.build.patch.1) \
external/coinmp/werror-format-pedantic.patch.0 \
external/coinmp/ubsan.patch.0 \
))
# vim: set noet sw=4 ts=4:
--- Clp/src/ClpParameters.hpp
+++ Clp/src/ClpParameters.hpp
@@ -81,7 +81,7 @@
template <class T> inline void
ClpDisjointCopyN( const T * array, const int size, T * newArray)
{
- memcpy(reinterpret_cast<void *> (newArray), array, size * sizeof(T));
+ if (size != 0) memcpy(reinterpret_cast<void *> (newArray), array, size * sizeof(T));
}
/// And set
template <class T> inline void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment