Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libHX for openSUSE:Factory checked 
in at 2023-07-15 23:15:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libHX (Old)
 and      /work/SRC/openSUSE:Factory/.libHX.new.3193 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libHX"

Sat Jul 15 23:15:07 2023 rev:73 rq:1098679 version:4.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/libHX/libHX.changes      2023-06-27 
23:16:07.487200276 +0200
+++ /work/SRC/openSUSE:Factory/.libHX.new.3193/libHX.changes    2023-07-15 
23:15:15.367549020 +0200
@@ -1,0 +2,6 @@
+Fri Jul 14 13:04:16 UTC 2023 - Jan Engelhardt <jeng...@inai.de>
+
+- Update to release 4.14
+  * socket: make HX_addrport_split work on portless bracketed hostspec
+
+-------------------------------------------------------------------

Old:
----
  libHX-4.13.tar.asc
  libHX-4.13.tar.xz

New:
----
  libHX-4.14.tar.asc
  libHX-4.14.tar.xz

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

Other differences:
------------------
++++++ libHX.spec ++++++
--- /var/tmp/diff_new_pack.cayJsT/_old  2023-07-15 23:15:16.139553548 +0200
+++ /var/tmp/diff_new_pack.cayJsT/_new  2023-07-15 23:15:16.147553595 +0200
@@ -18,7 +18,7 @@
 
 Name:           libHX
 %define lname   libHX32
-Version:        4.13
+Version:        4.14
 Release:        0
 Summary:        Collection of routines for C and C++ programming
 License:        LGPL-2.1-or-later

++++++ libHX-4.13.tar.xz -> libHX-4.14.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libHX-4.13/configure new/libHX-4.14/configure
--- old/libHX-4.13/configure    2023-06-21 10:12:17.612431609 +0200
+++ new/libHX-4.14/configure    2023-07-14 15:02:34.074308013 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for libHX 4.13.
+# Generated by GNU Autoconf 2.71 for libHX 4.14.
 #
 #
 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -618,8 +618,8 @@
 # Identity of this package.
 PACKAGE_NAME='libHX'
 PACKAGE_TARNAME='libhx'
-PACKAGE_VERSION='4.13'
-PACKAGE_STRING='libHX 4.13'
+PACKAGE_VERSION='4.14'
+PACKAGE_STRING='libHX 4.14'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1375,7 +1375,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libHX 4.13 to adapt to many kinds of systems.
+\`configure' configures libHX 4.14 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1446,7 +1446,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libHX 4.13:";;
+     short | recursive ) echo "Configuration of libHX 4.14:";;
    esac
   cat <<\_ACEOF
 
@@ -1561,7 +1561,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-libHX configure 4.13
+libHX configure 4.14
 generated by GNU Autoconf 2.71
 
 Copyright (C) 2021 Free Software Foundation, Inc.
@@ -2195,7 +2195,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libHX $as_me 4.13, which was
+It was created by libHX $as_me 4.14, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   $ $0$ac_configure_args_raw
@@ -3684,7 +3684,7 @@
 
 # Define the identity of the package.
  PACKAGE='libhx'
- VERSION='4.13'
+ VERSION='4.14'
 
 
 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -18771,7 +18771,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by libHX $as_me 4.13, which was
+This file was extended by libHX $as_me 4.14, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -18839,7 +18839,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config='$ac_cs_config_escaped'
 ac_cs_version="\\
-libHX config.status 4.13
+libHX config.status 4.14
 configured by $0, generated by GNU Autoconf 2.71,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libHX-4.13/configure.ac new/libHX-4.14/configure.ac
--- old/libHX-4.13/configure.ac 2023-06-21 10:11:57.000000000 +0200
+++ new/libHX-4.14/configure.ac 2023-07-14 15:01:53.000000000 +0200
@@ -1,4 +1,4 @@
-AC_INIT([libHX], [4.13])
+AC_INIT([libHX], [4.14])
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libHX-4.13/doc/changelog.rst 
new/libHX-4.14/doc/changelog.rst
--- old/libHX-4.13/doc/changelog.rst    2023-06-21 10:11:57.000000000 +0200
+++ new/libHX-4.14/doc/changelog.rst    2023-07-14 15:01:53.000000000 +0200
@@ -1,3 +1,11 @@
+v4.14 (2023-07-14)
+==================
+
+Fixes:
+
+* socket: make HX_addrport_split work on portless bracketed hostspec
+
+
 v4.13 (2023-06-21)
 ==================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libHX-4.13/src/map.c new/libHX-4.14/src/map.c
--- old/libHX-4.13/src/map.c    2023-06-21 10:11:57.000000000 +0200
+++ new/libHX-4.14/src/map.c    2023-07-14 15:01:53.000000000 +0200
@@ -1145,7 +1145,7 @@
 
        while (trav->head == &hmap->bk_array[trav->bk_current]) {
                if (++trav->bk_current >= HXhash_primes[hmap->power])
-                       return false;
+                       return NULL;
                trav->head = hmap->bk_array[trav->bk_current].next;
        }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libHX-4.13/src/socket.c new/libHX-4.14/src/socket.c
--- old/libHX-4.13/src/socket.c 2023-06-21 10:11:57.000000000 +0200
+++ new/libHX-4.14/src/socket.c 2023-07-14 15:01:53.000000000 +0200
@@ -86,8 +86,11 @@
                unsigned long hlen = end - spec;
                if (hlen >= hbufsz)
                        return -E2BIG;
-               if (*++end == '\0')
+               if (*++end == '\0') {
+                       memmove(host, spec, hlen);
+                       host[hlen] = '\0';
                        return 1;
+               }
                if (*end++ != ':')
                        return -EINVAL;
                char *nend = nullptr;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libHX-4.13/src/tc-socket.c 
new/libHX-4.14/src/tc-socket.c
--- old/libHX-4.13/src/tc-socket.c      2023-06-21 10:11:57.000000000 +0200
+++ new/libHX-4.14/src/tc-socket.c      2023-07-14 15:01:53.000000000 +0200
@@ -12,12 +12,30 @@
 #ifndef AI_V4MAPPED
 #      define AI_V4MAPPED 0
 #endif
+#include "internal.h"
 
-int main(void)
+static int t_parse(void)
+{
+       char host[32] = "bogus";
+       if (HX_addrport_split("[::1]", host, sizeof(host), nullptr) != 1 ||
+           strcmp(host, "::1") != 0)
+               return 1;
+       if (HX_addrport_split("[]", host, sizeof(host), nullptr) != 1 ||
+           strcmp(host, "") != 0)
+               return 1;
+       if (HX_addrport_split("", host, sizeof(host), nullptr) != 1 ||
+           strcmp(host, "") != 0)
+               return 1;
+       return 0;
+}
+
+static int t_local(void)
 {
        static const char *addrs[] = {
                "::1", "::2", "::ffff:127.0.0.1", "::",
+               "[::1]", "[::2]", "[::ffff:127.0.0.1]", "[::]",
                "127.0.0.1", "127.0.0.2", "1.1.1.1", "255.255.255.255",
+               "[127.0.0.1]", "[127.0.0.2]", "[1.1.1.1]", "[255.255.255.255]",
        };
        for (size_t i = 0; i < ARRAY_SIZE(addrs); ++i) {
                char host[32] = {};
@@ -73,3 +91,14 @@
        }
        return EXIT_SUCCESS;
 }
+
+int main(void)
+{
+       int ret = t_parse();
+       if (ret != 0)
+               return ret;
+       ret = t_local();
+       if (ret != EXIT_SUCCESS)
+               return ret;
+       return EXIT_SUCCESS;
+}

Reply via email to