1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

- Prevent endless loop in wxString::PrintV.

- Bump PORTREVISION.
This commit is contained in:
Max Khon 2005-02-21 19:58:30 +00:00
parent 4063b6b0a7
commit 66d65bab60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129510
5 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- src/common/string.cpp.orig Mon Feb 21 15:53:48 2005
+++ src/common/string.cpp Tue Feb 22 01:39:54 2005
@@ -39,6 +39,7 @@
#endif
#include <ctype.h>
+#include <errno.h>
#include <string.h>
#include <stdlib.h>
@@ -1956,6 +1957,9 @@
// ok, there was enough space
break;
}
+
+ if (errno != EOVERFLOW)
+ break;
// still not enough, double it again
size *= 2;

View File

@ -5,6 +5,8 @@
# $FreeBSD$
#
PORTREVISION= 1
MAINTAINER= fjoe@FreeBSD.org
COMMENT= The wxWidgets GUI toolkit (devel version, Unicode)

View File

@ -0,0 +1,20 @@
--- src/common/string.cpp.orig Mon Feb 21 15:53:48 2005
+++ src/common/string.cpp Tue Feb 22 01:39:54 2005
@@ -39,6 +39,7 @@
#endif
#include <ctype.h>
+#include <errno.h>
#include <string.h>
#include <stdlib.h>
@@ -1956,6 +1957,9 @@
// ok, there was enough space
break;
}
+
+ if (errno != EOVERFLOW)
+ break;
// still not enough, double it again
size *= 2;

View File

@ -0,0 +1,20 @@
--- src/common/string.cpp.orig Mon Feb 21 15:53:48 2005
+++ src/common/string.cpp Tue Feb 22 01:39:54 2005
@@ -39,6 +39,7 @@
#endif
#include <ctype.h>
+#include <errno.h>
#include <string.h>
#include <stdlib.h>
@@ -1956,6 +1957,9 @@
// ok, there was enough space
break;
}
+
+ if (errno != EOVERFLOW)
+ break;
// still not enough, double it again
size *= 2;

View File

@ -0,0 +1,20 @@
--- src/common/string.cpp.orig Mon Feb 21 15:53:48 2005
+++ src/common/string.cpp Tue Feb 22 01:39:54 2005
@@ -39,6 +39,7 @@
#endif
#include <ctype.h>
+#include <errno.h>
#include <string.h>
#include <stdlib.h>
@@ -1956,6 +1957,9 @@
// ok, there was enough space
break;
}
+
+ if (errno != EOVERFLOW)
+ break;
// still not enough, double it again
size *= 2;