File ssl/s3_pkt.c uses INT_MAX since May 19th. This macro is defined in
limits.h which is not included in s3_pkt.c.

Some platforms have INT_MAX defined even without the include - like
Linux - others not - like Solaris.

Similar files like e.g. ssl/s3_both.c already include limits.h.

The problem was introduced with commits

989d87cb1a174a951efd829ff6b2f68a322f9df8 (1.0.1)
c01a838d623a156f1ec912382d63bd219a049dba (1.0.0)
8e928aab02a4ebb491b6950d2829edad90e73245 (0.9.8)

in addition: It looks to me as if that change was not (!) ported to
1.0.2 and trunk/master. I don't know whether it is necessary there or not.

Patch (1.0.1):

--- ssl/s3_pkt.c        2014-06-05 11:44:33.000000000 +0200
+++ ssl/s3_pkt.c        2014-06-05 18:23:37.606588000 +0200
@@ -109,6 +109,7 @@
  *
  */

+#include <limits.h>
 #include <stdio.h>
 #include <limits.h>
 #include <errno.h>


Regards,

Rainer

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to