-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2017-06-25 16:17 UTC Viktor Szakats (vszakats users.noreply.github.com)
* contrib/hbexpat/3rd/expat/expat.hbp * contrib/hbexpat/3rd/expat/expat.dif * contrib/hbexpat/3rd/expat/* * expat 2.2.1 (from 2.2.0)
- Loading branch information
Showing
9 changed files
with
548 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,42 @@ | ||
diff --strip-trailing-cr -urN expat.orig/xmlparse.c expat/xmlparse.c | ||
--- expat.orig/xmlparse.c 2016-06-21 12:58:38.000000000 +0000 | ||
+++ expat/xmlparse.c 2017-05-26 05:20:42.000000000 +0000 | ||
@@ -17,7 +17,9 @@ | ||
--- expat.orig/xmlparse.c 2017-06-17 16:07:38.000000000 +0000 | ||
+++ expat/xmlparse.c 2017-06-25 16:17:09.000000000 +0000 | ||
@@ -23,7 +23,9 @@ | ||
|
||
#define XML_BUILDING_EXPAT 1 | ||
|
||
-#ifdef WIN32 | ||
-#ifdef _WIN32 | ||
+#ifdef HARBOUR_CONF | ||
+#include "_hbconf.h" | ||
+#elif defined(WIN32) | ||
+#elif defined(_WIN32) | ||
#include "winconfig.h" | ||
#elif defined(MACOS_CLASSIC) | ||
#include "macconfig.h" | ||
@@ -722,7 +724,14 @@ | ||
/* Process ID is 0 bits entropy if attacker has local access | ||
* XML_Parser address is few bits of entropy if attacker has local access */ | ||
const unsigned long entropy = | ||
- gather_time_entropy() ^ getpid() ^ (unsigned long)parser; | ||
+ gather_time_entropy() ^ getpid() ^ | ||
+#if defined( _WIN64 ) && defined( __GNUC__ ) | ||
+ (unsigned long)(unsigned long long)parser; | ||
+#elif defined( _WIN64 ) | ||
+ (unsigned long)(unsigned __int64)parser; | ||
+#else | ||
+ (unsigned long)parser; | ||
+#endif | ||
|
||
/* Factors are 2^31-1 and 2^61-1 (Mersenne primes M31 and M61) */ | ||
if (sizeof(unsigned long) == 4) { | ||
#elif defined(HAVE_EXPAT_CONFIG_H) | ||
#include <expat_config.h> | ||
diff --strip-trailing-cr -urN expat.orig/xmlrole.c expat/xmlrole.c | ||
--- expat.orig/xmlrole.c 2016-06-21 12:58:38.000000000 +0000 | ||
+++ expat/xmlrole.c 2017-05-26 05:20:54.000000000 +0000 | ||
--- expat.orig/xmlrole.c 2017-06-17 16:07:38.000000000 +0000 | ||
+++ expat/xmlrole.c 2017-06-25 16:17:09.000000000 +0000 | ||
@@ -4,7 +4,9 @@ | ||
|
||
#include <stddef.h> | ||
|
||
-#ifdef WIN32 | ||
-#ifdef _WIN32 | ||
+#ifdef HARBOUR_CONF | ||
+#include "_hbconf.h" | ||
+#elif defined(WIN32) | ||
+#elif defined(_WIN32) | ||
#include "winconfig.h" | ||
#elif defined(MACOS_CLASSIC) | ||
#include "macconfig.h" | ||
#else | ||
#ifdef HAVE_EXPAT_CONFIG_H | ||
diff --strip-trailing-cr -urN expat.orig/xmltok.c expat/xmltok.c | ||
--- expat.orig/xmltok.c 2016-06-21 12:58:38.000000000 +0000 | ||
+++ expat/xmltok.c 2017-05-26 05:21:01.000000000 +0000 | ||
--- expat.orig/xmltok.c 2017-06-17 16:07:38.000000000 +0000 | ||
+++ expat/xmltok.c 2017-06-25 16:17:09.000000000 +0000 | ||
@@ -4,7 +4,9 @@ | ||
|
||
#include <stddef.h> | ||
|
||
-#ifdef WIN32 | ||
-#ifdef _WIN32 | ||
+#ifdef HARBOUR_CONF | ||
+#include "_hbconf.h" | ||
+#elif defined(WIN32) | ||
+#elif defined(_WIN32) | ||
#include "winconfig.h" | ||
#elif defined(MACOS_CLASSIC) | ||
#include "macconfig.h" | ||
#else | ||
#ifdef HAVE_EXPAT_CONFIG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.