From a6d4dcde5664679001bb5e3f09ec5214424492e7 Mon Sep 17 00:00:00 2001 From: shdluan Date: Thu, 5 Aug 2021 09:46:24 +0800 Subject: [PATCH] fix return local addr Signed-off-by: shdluan --- fix-return-local-addr.patch | 12 ++++++++++++ mstflint.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 fix-return-local-addr.patch diff --git a/fix-return-local-addr.patch b/fix-return-local-addr.patch new file mode 100644 index 0000000..0c29c23 --- /dev/null +++ b/fix-return-local-addr.patch @@ -0,0 +1,12 @@ +diff -urN ./ext_libs2/sqlite/sqlite3.c ./ext_libs/sqlite/sqlite3.c +--- ./ext_libs2/sqlite/sqlite3.c 2021-08-05 09:37:16.410250283 +0800 ++++ ./ext_libs/sqlite/sqlite3.c 2021-08-05 09:36:24.801803014 +0800 +@@ -112969,7 +112969,7 @@ + Expr *pLimit, /* LIMIT value. NULL means not used */ + Expr *pOffset /* OFFSET value. NULL means no offset */ + ){ +- Select *pNew; ++ static Select *pNew; + Select standin; + sqlite3 *db = pParse->db; + pNew = sqlite3DbMallocRawNN(db, sizeof(*pNew) ); diff --git a/mstflint.spec b/mstflint.spec index 3d23042..7018608 100644 --- a/mstflint.spec +++ b/mstflint.spec @@ -1,11 +1,12 @@ Name: mstflint Summary: Firmware Burning and Diagnostics Tools Version: 4.10.0 -Release: 6 +Release: 7 License: GPLv2+ or BSD Url: https://github.com/Mellanox/mstflint Source: https://github.com/Mellanox/%{name}/releases/download/v4.10.0-2/%{name}-%{version}.tar.gz Patch0000: 0001-Fix-compile-errors.patch +Patch0001: fix-return-local-addr.patch BuildRequires: libstdc++-devel zlib-devel rdma-core-devel gcc-c++ gcc BuildRequires: libcurl-devel boost-devel libxml2-devel openssl-devel @@ -43,6 +44,9 @@ export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %{_mandir}/man1/* %changelog +* Tue Aug 4 2021 shdluan@163.com - 4.10.0-7 +- fix return local addr + * Tue Jul 28 2020 lingsheng - 4.10.0-6 - change the libibmad-devel to rdma-core-devel