aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-22 14:47:25 +0200
committermarha <marha@users.sourceforge.net>2013-07-22 14:47:25 +0200
commitb6aadb8490bdacf33196fa0898fe1247b9a8ee2c (patch)
treefd3eb9fb24cac7733fa7b8afab87fa6e46247c02
parent89bc3ee988b62eb5e10284bac32a176955546410 (diff)
downloadvcxsrv-b6aadb8490bdacf33196fa0898fe1247b9a8ee2c.tar.gz
vcxsrv-b6aadb8490bdacf33196fa0898fe1247b9a8ee2c.tar.bz2
vcxsrv-b6aadb8490bdacf33196fa0898fe1247b9a8ee2c.zip
libX11 mesa git update 22 Jul 2013
libX11 commit 24d3ee0d08f24e23c91d55702f010f73d7b908e5 mesa commit 190312949e8ce2c1dc884d4db5d6a44511666641
-rw-r--r--libX11/src/Font.c2
-rw-r--r--libX11/src/FontNames.c2
-rw-r--r--libX11/src/GetFPath.c2
-rw-r--r--libX11/src/ListExt.c2
-rw-r--r--libX11/src/ModMap.c2
-rw-r--r--mesalib/src/gallium/auxiliary/util/u_math.h4
-rw-r--r--mesalib/src/glsl/glsl_parser_extras.cpp3
7 files changed, 11 insertions, 6 deletions
diff --git a/libX11/src/Font.c b/libX11/src/Font.c
index a32f740bd..ac1802428 100644
--- a/libX11/src/Font.c
+++ b/libX11/src/Font.c
@@ -588,7 +588,7 @@ _XF86BigfontQueryFont (
if (!(extcodes->serverCapabilities & CAP_VerifiedLocal)) {
struct shmid_ds buf;
if (!(shmctl(reply.shmid, IPC_STAT, &buf) >= 0
- && reply.nCharInfos < (LONG_MAX / sizeof(XCharStruct))
+ && reply.nCharInfos < (INT_MAX / sizeof(XCharStruct))
&& buf.shm_segsz >= reply.shmsegoffset + reply.nCharInfos * sizeof(XCharStruct) + sizeof(CARD32)
&& *(CARD32 *)(addr + reply.shmsegoffset + reply.nCharInfos * sizeof(XCharStruct)) == extcodes->serverSignature)) {
shmdt(addr);
diff --git a/libX11/src/FontNames.c b/libX11/src/FontNames.c
index b5bc7b4ba..764711559 100644
--- a/libX11/src/FontNames.c
+++ b/libX11/src/FontNames.c
@@ -66,7 +66,7 @@ int *actualCount) /* RETURN */
if (rep.nFonts) {
flist = Xmalloc (rep.nFonts * sizeof(char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
rlen = rep.length << 2;
ch = Xmalloc(rlen + 1);
/* +1 to leave room for last null-terminator */
diff --git a/libX11/src/GetFPath.c b/libX11/src/GetFPath.c
index abd4a5dbd..8f8c6144a 100644
--- a/libX11/src/GetFPath.c
+++ b/libX11/src/GetFPath.c
@@ -50,7 +50,7 @@ char **XGetFontPath(
if (rep.nPaths) {
flist = Xmalloc(rep.nPaths * sizeof (char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long) rep.length << 2;
ch = Xmalloc (nbytes + 1);
/* +1 to leave room for last null-terminator */
diff --git a/libX11/src/ListExt.c b/libX11/src/ListExt.c
index e925c4773..59599d1a6 100644
--- a/libX11/src/ListExt.c
+++ b/libX11/src/ListExt.c
@@ -55,7 +55,7 @@ char **XListExtensions(
if (rep.nExtensions) {
list = Xmalloc (rep.nExtensions * sizeof (char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
rlen = rep.length << 2;
ch = Xmalloc (rlen + 1);
/* +1 to leave room for last null-terminator */
diff --git a/libX11/src/ModMap.c b/libX11/src/ModMap.c
index 5c5b42612..04cd676eb 100644
--- a/libX11/src/ModMap.c
+++ b/libX11/src/ModMap.c
@@ -42,7 +42,7 @@ XGetModifierMapping(register Display *dpy)
GetEmptyReq(GetModifierMapping, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xFalse);
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long)rep.length << 2;
res = Xmalloc(sizeof (XModifierKeymap));
if (res)
diff --git a/mesalib/src/gallium/auxiliary/util/u_math.h b/mesalib/src/gallium/auxiliary/util/u_math.h
index bc3948875..702d4e9d4 100644
--- a/mesalib/src/gallium/auxiliary/util/u_math.h
+++ b/mesalib/src/gallium/auxiliary/util/u_math.h
@@ -48,6 +48,7 @@ extern "C" {
#include <math.h>
+#include <float.h>
#include <stdarg.h>
#ifdef PIPE_OS_UNIX
@@ -133,6 +134,9 @@ roundf(float x)
return x >= 0.0f ? floorf(x + 0.5f) : ceilf(x - 0.5f);
}
+#define INFINITY (DBL_MAX + DBL_MAX)
+#define NAN (INFINITY - INFINITY)
+
#endif /* _MSC_VER */
diff --git a/mesalib/src/glsl/glsl_parser_extras.cpp b/mesalib/src/glsl/glsl_parser_extras.cpp
index 84c477773..ec4e3196b 100644
--- a/mesalib/src/glsl/glsl_parser_extras.cpp
+++ b/mesalib/src/glsl/glsl_parser_extras.cpp
@@ -1115,7 +1115,8 @@ ast_function::print(void) const
ast_function::ast_function(void)
- : is_definition(false), signature(NULL)
+ : return_type(NULL), identifier(NULL), is_definition(false),
+ signature(NULL)
{
/* empty */
}