Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package aws-c-io for openSUSE:Factory 
checked in at 2025-09-10 20:22:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/aws-c-io (Old)
 and      /work/SRC/openSUSE:Factory/.aws-c-io.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "aws-c-io"

Wed Sep 10 20:22:43 2025 rev:28 rq:1303582 version:0.21.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/aws-c-io/aws-c-io.changes        2025-09-02 
18:02:02.283867178 +0200
+++ /work/SRC/openSUSE:Factory/.aws-c-io.new.1977/aws-c-io.changes      
2025-09-10 20:22:45.602527823 +0200
@@ -1,0 +2,9 @@
+Tue Sep  9 11:12:30 UTC 2025 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to version 0.21.5
+  * Fix a memory leak from error handling in s2n tls handler
+    by @TingDaoK in (#753)
+  * Fix win build when lean and mean specified
+    by @DmitriyMusatkin in (#755)
+
+-------------------------------------------------------------------

Old:
----
  v0.21.4.tar.gz

New:
----
  v0.21.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ aws-c-io.spec ++++++
--- /var/tmp/diff_new_pack.ksasN8/_old  2025-09-10 20:22:46.242554841 +0200
+++ /var/tmp/diff_new_pack.ksasN8/_new  2025-09-10 20:22:46.246555010 +0200
@@ -21,7 +21,7 @@
 %define library_version 1.0.0
 %define library_soversion 0unstable
 Name:           aws-c-io
-Version:        0.21.4
+Version:        0.21.5
 Release:        0
 Summary:        I/O and TLS package AWS SDK for C
 License:        Apache-2.0

++++++ v0.21.4.tar.gz -> v0.21.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-io-0.21.4/.github/workflows/ci.yml 
new/aws-c-io-0.21.5/.github/workflows/ci.yml
--- old/aws-c-io-0.21.4/.github/workflows/ci.yml        2025-08-20 
22:08:05.000000000 +0200
+++ new/aws-c-io-0.21.5/.github/workflows/ci.yml        2025-09-08 
20:59:55.000000000 +0200
@@ -172,6 +172,20 @@
         python -c "from urllib.request import urlretrieve; urlretrieve('${{ 
env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION 
}}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
         python builder.pyz build -p ${{ env.PACKAGE_NAME }}
 
+  windows-lean:
+    runs-on: windows-2025 # latest
+    env:
+      CFLAGS: "-DWIN32_LEAN_AND_MEAN"
+    steps:
+    - uses: aws-actions/configure-aws-credentials@v4
+      with:
+        role-to-assume: ${{ env.CRT_CI_ROLE }}
+        aws-region: ${{ env.AWS_DEFAULT_REGION }}
+    - name: Build ${{ env.PACKAGE_NAME }} + consumers
+      run: |
+        python -c "from urllib.request import urlretrieve; urlretrieve('${{ 
env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION 
}}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
+        python builder.pyz build -p ${{ env.PACKAGE_NAME }}
+
   windows-debug:
     runs-on: windows-2025 # latest
     steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-io-0.21.4/include/aws/io/private/pki_utils.h 
new/aws-c-io-0.21.5/include/aws/io/private/pki_utils.h
--- old/aws-c-io-0.21.4/include/aws/io/private/pki_utils.h      2025-08-20 
22:08:05.000000000 +0200
+++ new/aws-c-io-0.21.5/include/aws/io/private/pki_utils.h      2025-09-08 
20:59:55.000000000 +0200
@@ -9,7 +9,16 @@
 #ifdef _WIN32
 /* It's ok to include external headers because this is a PRIVATE header file
  * (it is usually a crime to include windows.h from header file) */
+#    define NOMINMAX
+#    define NOCRYPT
 #    include <windows.h>
+
+/* Note: we need defs for crypto definitions, we can get them from windows.h, 
but
+ * with lean an mean on they will be missing from windows.h.
+ * So instead lets have a proper dependency on the header that defines them, 
and force them
+ * to not be included in windows.h.
+ */
+#    include <wincrypt.h>
 #endif /* _WIN32 */
 
 #ifdef AWS_OS_APPLE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-io-0.21.4/source/s2n/s2n_tls_channel_handler.c 
new/aws-c-io-0.21.5/source/s2n/s2n_tls_channel_handler.c
--- old/aws-c-io-0.21.4/source/s2n/s2n_tls_channel_handler.c    2025-08-20 
22:08:05.000000000 +0200
+++ new/aws-c-io-0.21.5/source/s2n/s2n_tls_channel_handler.c    2025-09-08 
20:59:55.000000000 +0200
@@ -1450,11 +1450,6 @@
     struct aws_allocator *alloc,
     const struct aws_tls_ctx_options *options,
     s2n_mode mode) {
-    struct s2n_ctx *s2n_ctx = aws_mem_calloc(alloc, 1, sizeof(struct s2n_ctx));
-
-    if (!s2n_ctx) {
-        return NULL;
-    }
 
     if (!aws_tls_is_cipher_pref_supported(options->cipher_pref)) {
         aws_raise_error(AWS_IO_TLS_CIPHER_PREF_UNSUPPORTED);
@@ -1462,6 +1457,8 @@
         return NULL;
     }
 
+    struct s2n_ctx *s2n_ctx = aws_mem_calloc(alloc, 1, sizeof(struct s2n_ctx));
+
     s2n_ctx->ctx.alloc = alloc;
     s2n_ctx->ctx.impl = s2n_ctx;
     aws_ref_count_init(&s2n_ctx->ctx.ref_count, s2n_ctx, 
(aws_simple_completion_callback *)s_s2n_ctx_destroy);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-c-io-0.21.4/source/windows/iocp/iocp_event_loop.c 
new/aws-c-io-0.21.5/source/windows/iocp/iocp_event_loop.c
--- old/aws-c-io-0.21.4/source/windows/iocp/iocp_event_loop.c   2025-08-20 
22:08:05.000000000 +0200
+++ new/aws-c-io-0.21.5/source/windows/iocp/iocp_event_loop.c   2025-09-08 
20:59:55.000000000 +0200
@@ -13,7 +13,12 @@
 #include <aws/io/logging.h>
 #include <aws/io/private/event_loop_impl.h>
 
+/*
+ * Note: windows.h does not include ntstatus when compiled lean and mean.
+ * winternl is the proper place to pickup ntstatus
+ */
 #include <windows.h>
+#include <winternl.h>
 
 /* The next set of struct definitions are taken directly from the
     windows documentation. We can't include the header files directly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-io-0.21.4/tests/socket_test.c 
new/aws-c-io-0.21.5/tests/socket_test.c
--- old/aws-c-io-0.21.4/tests/socket_test.c     2025-08-20 22:08:05.000000000 
+0200
+++ new/aws-c-io-0.21.5/tests/socket_test.c     2025-09-08 20:59:55.000000000 
+0200
@@ -2675,14 +2675,14 @@
         const char *input;
         uint32_t expected_network_order;
     } test_cases[] = {
-        {"127.0.0.1", htonl(0x7F000001)},       /* localhost */
-        {"0.0.0.0", htonl(0x00000000)},         /* any address */
-        {"255.255.255.255", htonl(0xFFFFFFFF)}, /* broadcast */
-        {"192.168.1.1", htonl(0xC0A80101)},     /* common private IP */
-        {"10.0.0.1", htonl(0x0A000001)},        /* private IP */
-        {"172.16.0.1", htonl(0xAC100001)},      /* private IP */
-        {"8.8.8.8", htonl(0x08080808)},         /* Google DNS */
-        {"1.2.3.4", htonl(0x01020304)},         /* simple test case */
+        {"127.0.0.1", aws_hton32(0x7F000001)},       /* localhost */
+        {"0.0.0.0", aws_hton32(0x00000000)},         /* any address */
+        {"255.255.255.255", aws_hton32(0xFFFFFFFF)}, /* broadcast */
+        {"192.168.1.1", aws_hton32(0xC0A80101)},     /* common private IP */
+        {"10.0.0.1", aws_hton32(0x0A000001)},        /* private IP */
+        {"172.16.0.1", aws_hton32(0xAC100001)},      /* private IP */
+        {"8.8.8.8", aws_hton32(0x08080808)},         /* Google DNS */
+        {"1.2.3.4", aws_hton32(0x01020304)},         /* simple test case */
     };
 
     for (size_t i = 0; i < AWS_ARRAY_SIZE(test_cases); i++) {

Reply via email to