[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0alpha1-7-g492d175

git at osgeo.org git at osgeo.org
Tue Sep 21 07:30:56 PDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  492d1757bba95f1920e5b4d62fa80004861e9378 (commit)
      from  c140fdb8ca581d47b9173f3bbef61b75e6c26deb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 492d1757bba95f1920e5b4d62fa80004861e9378
Author: Björn Harrtell <bjorn at wololo.org>
Date:   Tue Sep 21 16:26:58 2021 +0200

    Ensure header is 8 byte aligned to adhere to patch level 1

diff --git a/deps/flatgeobuf/flatgeobuf_c.cpp b/deps/flatgeobuf/flatgeobuf_c.cpp
index dd87696..e71a927 100644
--- a/deps/flatgeobuf/flatgeobuf_c.cpp
+++ b/deps/flatgeobuf/flatgeobuf_c.cpp
@@ -33,7 +33,7 @@ using namespace FlatGeobuf;
 
 typedef flatgeobuf_ctx ctx;
 
-uint8_t flatgeobuf_magicbytes[] = { 0x66, 0x67, 0x62, 0x03, 0x66, 0x67, 0x62, 0x00 };
+uint8_t flatgeobuf_magicbytes[] = { 0x66, 0x67, 0x62, 0x03, 0x66, 0x67, 0x62, 0x01 };
 uint8_t FLATGEOBUF_MAGICBYTES_SIZE = sizeof(flatgeobuf_magicbytes);
 uint8_t FLATGEOBUF_MAGICBYTES_LEN = (sizeof(flatgeobuf_magicbytes) / sizeof((flatgeobuf_magicbytes)[0]));
 
@@ -45,6 +45,7 @@ struct FeatureItem : FlatGeobuf::Item {
 int flatgeobuf_encode_header(ctx *ctx)
 {
     FlatBufferBuilder fbb;
+    fbb.TrackMinAlign(8);
 
     // inspect first geometry
 	if (ctx->lwgeom != NULL) {
@@ -112,6 +113,8 @@ int flatgeobuf_encode_feature(ctx *ctx)
     Offset<Geometry> geometry = 0;
     Offset<Vector<uint8_t>> properties = 0;
 
+    fbb.TrackMinAlign(8);
+
     if (ctx->lwgeom != NULL && !lwgeom_is_empty(ctx->lwgeom)) {
         LWDEBUGG(3, ctx->lwgeom, "GeometryWriter input LWGEOM");
         GeometryWriter writer(fbb, ctx->lwgeom, (GeometryType) ctx->geometry_type, ctx->has_z, ctx->has_m);

-----------------------------------------------------------------------

Summary of changes:
 deps/flatgeobuf/flatgeobuf_c.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list