Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libvsgpt for openSUSE:Factory checked in at 2026-09-14 16:21:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvsgpt (Old) and /work/SRC/openSUSE:Factory/.libvsgpt.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvsgpt" Mon Sep 14 16:21:14 2026 rev:14 rq:1377640 version:20260911 Changes: -------- --- /work/SRC/openSUSE:Factory/libvsgpt/libvsgpt.changes 2026-08-01 18:38:29.018735744 +0200 +++ /work/SRC/openSUSE:Factory/.libvsgpt.new.1265/libvsgpt.changes 2026-09-14 16:21:17.095802168 +0200 @@ -1,0 +2,6 @@ +Sun Sep 13 07:35:18 UTC 2026 - Jan Engelhardt <[email protected]> + +- Update to release 202609011 + * Added checks for the number of partition tables + +------------------------------------------------------------------- Old: ---- libvsgpt-experimental-20260731.tar.gz libvsgpt-experimental-20260731.tar.gz.asc New: ---- libvsgpt-experimental-20260911.tar.gz libvsgpt-experimental-20260911.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvsgpt.spec ++++++ --- /var/tmp/diff_new_pack.dFVHxS/_old 2026-09-14 16:21:18.223849571 +0200 +++ /var/tmp/diff_new_pack.dFVHxS/_new 2026-09-14 16:21:18.225849655 +0200 @@ -20,7 +20,7 @@ Name: libvsgpt %define lname libvsgpt1 -Version: 20260731 +Version: 20260911 Release: 0 Summary: Library and tools to access the GUID Partition Table (GPT) volume system format License: LGPL-3.0-or-later ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.dFVHxS/_old 2026-09-14 16:21:18.265851336 +0200 +++ /var/tmp/diff_new_pack.dFVHxS/_new 2026-09-14 16:21:18.269851504 +0200 @@ -1,5 +1,5 @@ -mtime: 1785587091 -commit: ed4a2aa45a7913f03f527f36441a3101165681546c97465b9f19df28d3ccc198 +mtime: 1789285390 +commit: b23ca5d0d90b0e902dbbdbed0c1c726596e4997c1ed4c36f3ac65eb9e0cd547d url: https://src.opensuse.org/security-forensics/libvsgpt revision: master ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-09-13 09:43:10.000000000 +0200 @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild ++++++ libvsgpt-experimental-20260731.tar.gz -> libvsgpt-experimental-20260911.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/common/config.h new/libvsgpt-20260911/common/config.h --- old/libvsgpt-20260731/common/config.h 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/common/config.h 2026-09-12 12:45:16.000000000 +0200 @@ -530,7 +530,7 @@ #define PACKAGE_NAME "libvsgpt" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "libvsgpt 20260731" +#define PACKAGE_STRING "libvsgpt 20260911" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "libvsgpt" @@ -539,7 +539,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "20260731" +#define PACKAGE_VERSION "20260911" /* The size of 'int', as computed by sizeof. */ #define SIZEOF_INT 4 @@ -568,7 +568,7 @@ /* #undef TM_IN_SYS_TIME */ /* Version number of package */ -#define VERSION "20260731" +#define VERSION "20260911" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/configure new/libvsgpt-20260911/configure --- old/libvsgpt-20260731/configure 2026-07-31 10:10:54.000000000 +0200 +++ new/libvsgpt-20260911/configure 2026-09-12 12:45:09.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for libvsgpt 20260731. +# Generated by GNU Autoconf 2.72 for libvsgpt 20260911. # # Report bugs to <https://github.com/libyal/libvsgpt/issues>. # @@ -614,8 +614,8 @@ # Identity of this package. PACKAGE_NAME='libvsgpt' PACKAGE_TARNAME='libvsgpt' -PACKAGE_VERSION='20260731' -PACKAGE_STRING='libvsgpt 20260731' +PACKAGE_VERSION='20260911' +PACKAGE_STRING='libvsgpt 20260911' PACKAGE_BUGREPORT='https://github.com/libyal/libvsgpt/issues' PACKAGE_URL='' @@ -1642,7 +1642,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 libvsgpt 20260731 to adapt to many kinds of systems. +'configure' configures libvsgpt 20260911 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1713,7 +1713,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libvsgpt 20260731:";; + short | recursive ) echo "Configuration of libvsgpt 20260911:";; esac cat <<\_ACEOF @@ -1955,7 +1955,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libvsgpt configure 20260731 +libvsgpt configure 20260911 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -2697,7 +2697,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libvsgpt $as_me 20260731, which was +It was created by libvsgpt $as_me 20260911, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -4394,7 +4394,7 @@ # Define the identity of the package. PACKAGE='libvsgpt' - VERSION='20260731' + VERSION='20260911' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -60870,7 +60870,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libvsgpt $as_me 20260731, which was +This file was extended by libvsgpt $as_me 20260911, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -60938,7 +60938,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libvsgpt config.status 20260731 +libvsgpt config.status 20260911 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/configure.ac new/libvsgpt-20260911/configure.ac --- old/libvsgpt-20260731/configure.ac 2026-07-31 09:58:17.000000000 +0200 +++ new/libvsgpt-20260911/configure.ac 2026-09-11 17:53:00.000000000 +0200 @@ -2,7 +2,7 @@ AC_INIT( [libvsgpt], - [20260731], + [20260911], [https://github.com/libyal/libvsgpt/issues]) AC_CONFIG_SRCDIR( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/dpkg/changelog new/libvsgpt-20260911/dpkg/changelog --- old/libvsgpt-20260731/dpkg/changelog 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/dpkg/changelog 2026-09-12 12:45:16.000000000 +0200 @@ -1,5 +1,5 @@ -libvsgpt (20260731-1) unstable; urgency=low +libvsgpt (20260911-1) unstable; urgency=low * Auto-generated - -- Joachim Metz <[email protected]> Fri, 31 Jul 2026 10:11:00 +0200 + -- Joachim Metz <[email protected]> Sat, 12 Sep 2026 12:45:15 +0200 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/include/libvsgpt/definitions.h new/libvsgpt-20260911/include/libvsgpt/definitions.h --- old/libvsgpt-20260731/include/libvsgpt/definitions.h 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/include/libvsgpt/definitions.h 2026-09-12 12:45:16.000000000 +0200 @@ -24,11 +24,11 @@ #include <libvsgpt/types.h> -#define LIBVSGPT_VERSION 20260731 +#define LIBVSGPT_VERSION 20260911 /* The version string */ -#define LIBVSGPT_VERSION_STRING "20260731" +#define LIBVSGPT_VERSION_STRING "20260911" /* The byte order definitions */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/libvsgpt/libvsgpt.rc new/libvsgpt-20260911/libvsgpt/libvsgpt.rc --- old/libvsgpt-20260731/libvsgpt/libvsgpt.rc 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/libvsgpt/libvsgpt.rc 2026-09-12 12:45:16.000000000 +0200 @@ -22,12 +22,12 @@ BLOCK "040904E4" BEGIN VALUE "FileDescription", "Library to access the GUID Partition Table (GPT) volume system format\0" - VALUE "FileVersion", "20260731" "\0" + VALUE "FileVersion", "20260911" "\0" VALUE "InternalName", "libvsgpt.dll\0" VALUE "LegalCopyright", "(C) 2019-2026, Joachim Metz <[email protected]>\0" VALUE "OriginalFilename", "libvsgpt.dll\0" VALUE "ProductName", "libvsgpt\0" - VALUE "ProductVersion", "20260731" "\0" + VALUE "ProductVersion", "20260911" "\0" VALUE "Comments", "For more information visit https://github.com/libyal/libvsgpt/\0" END END diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/libvsgpt/libvsgpt_definitions.h new/libvsgpt-20260911/libvsgpt/libvsgpt_definitions.h --- old/libvsgpt-20260731/libvsgpt/libvsgpt_definitions.h 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/libvsgpt/libvsgpt_definitions.h 2026-09-12 12:45:16.000000000 +0200 @@ -33,11 +33,11 @@ * for local use of libvsgpt */ #else -#define LIBVSGPT_VERSION 20260731 +#define LIBVSGPT_VERSION 20260911 /* The libvsgpt version string */ -#define LIBVSGPT_VERSION_STRING "20260731" +#define LIBVSGPT_VERSION_STRING "20260911" /* The endian definitions */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/libvsgpt/libvsgpt_partition_entry.c new/libvsgpt-20260911/libvsgpt/libvsgpt_partition_entry.c --- old/libvsgpt-20260731/libvsgpt/libvsgpt_partition_entry.c 2026-07-31 09:58:18.000000000 +0200 +++ new/libvsgpt-20260911/libvsgpt/libvsgpt_partition_entry.c 2026-09-03 14:45:28.000000000 +0200 @@ -265,7 +265,7 @@ return( -1 ); } - if( ( data_size < sizeof( vsgpt_partition_entry_t) ) + if( ( data_size < sizeof( vsgpt_partition_entry_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/libvsgpt/libvsgpt_volume.c new/libvsgpt-20260911/libvsgpt/libvsgpt_volume.c --- old/libvsgpt-20260731/libvsgpt/libvsgpt_volume.c 2026-07-31 10:04:33.000000000 +0200 +++ new/libvsgpt-20260911/libvsgpt/libvsgpt_volume.c 2026-09-11 17:52:50.000000000 +0200 @@ -1533,12 +1533,8 @@ return( -1 ); } -#if ( SIZEOF_SIZE_T <= 4 ) if( ( internal_volume->partition_table_header->partition_entry_data_size < 128 ) - || ( internal_volume->partition_table_header->partition_entry_data_size > (size_t) SSIZE_MAX ) ) -#else - if( internal_volume->partition_table_header->partition_entry_data_size < 128 ) -#endif + || ( internal_volume->partition_table_header->partition_entry_data_size > (size_t) MEMORY_MAXIMUM_ALLOCATION_SIZE ) ) { libcerror_error_set( error, @@ -1560,9 +1556,13 @@ return( -1 ); } + if( internal_volume->partition_table_header->number_of_partition_entries == 0 ) + { + return( 1 ); + } partition_entries_data_size = (size_t) internal_volume->partition_table_header->partition_entry_data_size * (size_t) internal_volume->partition_table_header->number_of_partition_entries; - if( partition_entries_data_size > (size_t) SSIZE_MAX ) + if( partition_entries_data_size > (size_t) MEMORY_MAXIMUM_ALLOCATION_SIZE ) { libcerror_error_set( error, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/libvsgpt.spec new/libvsgpt-20260911/libvsgpt.spec --- old/libvsgpt-20260731/libvsgpt.spec 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/libvsgpt.spec 2026-09-12 12:45:16.000000000 +0200 @@ -1,5 +1,5 @@ Name: libvsgpt -Version: 20260731 +Version: 20260911 Release: 1 Summary: Library to access the GUID Partition Table (GPT) volume system format Group: System Environment/Libraries @@ -94,6 +94,6 @@ %{_mandir}/man1/* %changelog -* Fri Jul 31 2026 Joachim Metz <[email protected]> 20260731-1 +* Sat Sep 12 2026 Joachim Metz <[email protected]> 20260911-1 - Auto-generated diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/pyproject.toml new/libvsgpt-20260911/pyproject.toml --- old/libvsgpt-20260731/pyproject.toml 2026-07-31 10:11:01.000000000 +0200 +++ new/libvsgpt-20260911/pyproject.toml 2026-09-12 12:45:16.000000000 +0200 @@ -4,7 +4,7 @@ [project] name = "libvsgpt-python" -version = "20260731" +version = "20260911" description = "Python bindings for libvsgpt" maintainers = [ { name = "Joachim Metz", email = "[email protected]" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/tests/package.m4 new/libvsgpt-20260911/tests/package.m4 --- old/libvsgpt-20260731/tests/package.m4 2026-07-31 09:58:19.000000000 +0200 +++ new/libvsgpt-20260911/tests/package.m4 2026-09-11 17:53:43.000000000 +0200 @@ -1,5 +1,5 @@ m4_define([AT_PACKAGE_NAME], [libvsgpt]) m4_define([AT_PACKAGE_TARNAME], [libvsgpt]) -m4_define([AT_PACKAGE_VERSION], [20260614]) -m4_define([AT_PACKAGE_STRING], [libvsgpt 20260614]) +m4_define([AT_PACKAGE_VERSION], [20260911]) +m4_define([AT_PACKAGE_STRING], [libvsgpt 20260911]) m4_define([AT_PACKAGE_BUGREPORT], [https://github.com/libyal/libvsgpt/issues]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvsgpt-20260731/tests/vsgpt_test_volume.c new/libvsgpt-20260911/tests/vsgpt_test_volume.c --- old/libvsgpt-20260731/tests/vsgpt_test_volume.c 2026-07-31 09:58:57.000000000 +0200 +++ new/libvsgpt-20260911/tests/vsgpt_test_volume.c 2026-09-11 17:43:39.000000000 +0200 @@ -2128,14 +2128,14 @@ { libcerror_error_t *error = NULL; libvsgpt_partition_t *partition = 0; + int number_of_partitions = 0; int result = 0; - /* Test regular cases + /* Initialize test */ - result = libvsgpt_volume_get_partition_by_index( + result = libvsgpt_volume_get_number_of_partitions( volume, - 0, - &partition, + &number_of_partitions, &error ); VSGPT_TEST_ASSERT_EQUAL_INT( @@ -2147,23 +2147,42 @@ "error", error ); - VSGPT_TEST_ASSERT_IS_NOT_NULL( - "partition", - partition ); + /* Test regular cases + */ + if( number_of_partitions > 0 ) + { + result = libvsgpt_volume_get_partition_by_index( + volume, + 0, + &partition, + &error ); - result = libvsgpt_partition_free( - &partition, - &error ); + VSGPT_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); - VSGPT_TEST_ASSERT_EQUAL_INT( - "result", - result, - 1 ); + VSGPT_TEST_ASSERT_IS_NULL( + "error", + error ); - VSGPT_TEST_ASSERT_IS_NULL( - "error", - error ); + VSGPT_TEST_ASSERT_IS_NOT_NULL( + "partition", + partition ); + result = libvsgpt_partition_free( + &partition, + &error ); + + VSGPT_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + VSGPT_TEST_ASSERT_IS_NULL( + "error", + error ); + } /* Test error cases */ result = libvsgpt_volume_get_partition_by_index( @@ -2320,13 +2339,14 @@ libvsgpt_volume_t *volume ) { libcerror_error_t *error = NULL; + int number_of_partitions = 0; int result = 0; - /* Test regular cases + /* Initialize test */ - result = libvsgpt_volume_has_partition_with_identifier( + result = libvsgpt_volume_get_number_of_partitions( volume, - 0, + &number_of_partitions, &error ); VSGPT_TEST_ASSERT_EQUAL_INT( @@ -2338,20 +2358,38 @@ "error", error ); - result = libvsgpt_volume_has_partition_with_identifier( - volume, - 0xffffffffUL, - &error ); + /* Test regular cases + */ + if( number_of_partitions > 0 ) + { + result = libvsgpt_volume_has_partition_with_identifier( + volume, + 0, + &error ); - VSGPT_TEST_ASSERT_EQUAL_INT( - "result", - result, - 0 ); + VSGPT_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); - VSGPT_TEST_ASSERT_IS_NULL( - "error", - error ); + VSGPT_TEST_ASSERT_IS_NULL( + "error", + error ); + result = libvsgpt_volume_has_partition_with_identifier( + volume, + 0xffffffffUL, + &error ); + + VSGPT_TEST_ASSERT_EQUAL_INT( + "result", + result, + 0 ); + + VSGPT_TEST_ASSERT_IS_NULL( + "error", + error ); + } /* Test error cases */ result = libvsgpt_volume_has_partition_with_identifier( @@ -2448,14 +2486,14 @@ { libcerror_error_t *error = NULL; libvsgpt_partition_t *partition = 0; + int number_of_partitions = 0; int result = 0; - /* Test regular cases + /* Initialize test */ - result = libvsgpt_volume_get_partition_by_identifier( + result = libvsgpt_volume_get_number_of_partitions( volume, - 0, - &partition, + &number_of_partitions, &error ); VSGPT_TEST_ASSERT_EQUAL_INT( @@ -2467,23 +2505,42 @@ "error", error ); - VSGPT_TEST_ASSERT_IS_NOT_NULL( - "partition", - partition ); + /* Test regular cases + */ + if( number_of_partitions > 0 ) + { + result = libvsgpt_volume_get_partition_by_identifier( + volume, + 0, + &partition, + &error ); - result = libvsgpt_partition_free( - &partition, - &error ); + VSGPT_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); - VSGPT_TEST_ASSERT_EQUAL_INT( - "result", - result, - 1 ); + VSGPT_TEST_ASSERT_IS_NULL( + "error", + error ); - VSGPT_TEST_ASSERT_IS_NULL( - "error", - error ); + VSGPT_TEST_ASSERT_IS_NOT_NULL( + "partition", + partition ); + result = libvsgpt_partition_free( + &partition, + &error ); + + VSGPT_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + VSGPT_TEST_ASSERT_IS_NULL( + "error", + error ); + } result = libvsgpt_volume_get_partition_by_identifier( volume, 0xffffffffUL,
