You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In reviewing source code in tlsdate, sub-directory 'src,
file 'test-bio.c', I noticed a magic number being defined
w/out regard to endianess (LITTLE (std) vs. BIG), the patch
file below should address/correct this issue for this file:
Hello All,
file 'test-bio.c', I noticed a magic number being defined
w/out regard to endianess (LITTLE (std) vs. BIG), the patch
file below should address/correct this issue for this file:
--- test-bio.c.orig 2015-10-22 17:52:40.656191527 -0700
+++ test-bio.c 2015-10-22 18:09:30.105487341 -0700
@@ -14,6 +14,7 @@
#include <assert.h>
#include <string.h>
+#include <endian.h>
#include "src/test-bio.h"
#include "src/util.h"
@@ -21,7 +22,11 @@
int verbose;
int verbose_debug;
+#if __BYTE_ORDER == __BIG_ENDIAN
static const unsigned int kMagic = 0x5f8d3f15;
+#else /* __BYTE_ORDER == LITTLE_ENDIAN */
+static const unsigned int kMagic = 0x8d5f153f;
+#endif
struct test_ctx
{
Bill Parker (wp02855 at gmail dot com)
The text was updated successfully, but these errors were encountered: