--- /dev/null
+diff -dur sipp-3.3.orig/stat.cpp sipp-3.3/stat.cpp
+--- sipp-3.3.orig/stat.cpp 2013-05-27 10:48:19.000000000 +0200
++++ sipp-3.3/stat.cpp 2013-05-27 11:00:15.000000000 +0200
+@@ -1140,7 +1140,7 @@
+ char* CStat::sRepartitionInfo(T_dynamicalRepartition * tabRepartition,
+ int sizeOfTab)
+ {
+- static char *repartitionInfo;
++ static char *repartitionInfo = NULL;
+ char buffer[MAX_CHAR_BUFFER_SIZE];
+ int dlen = strlen(stat_delimiter);
+
+@@ -1148,7 +1148,7 @@
+ {
+ // if a repartition is present, this field match the repartition name
+ repartitionInfo = (char *)realloc(repartitionInfo, dlen + 1);
+- strcpy(stat_delimiter, repartitionInfo);
++ strcpy(repartitionInfo, stat_delimiter);
+ for(int i=0; i<(sizeOfTab-1); i++)
+ {
+ sprintf(buffer, "%lu%s", tabRepartition[i].nbInThisBorder, stat_delimiter);
-#
Summary: SIPp - a performance testing tool for the SIP protocol
Name: sipp
Version: 3.3
# Source0-md5: f0c4f472fa86de8a528cb91616323617
Patch0: %{name}-headers.patch
Patch1: %{name}-sprintf.patch
+Patch2: %{name}-stats_crash.patch
URL: http://sipp.sourceforge.net/
BuildRequires: libpcap-devel
BuildRequires: libstdc++-devel
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build