Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package drpm for openSUSE:Factory checked in at 2021-05-18 18:26:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/drpm (Old) and /work/SRC/openSUSE:Factory/.drpm.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "drpm" Tue May 18 18:26:34 2021 rev:4 rq:893109 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/drpm/drpm.changes 2021-02-22 14:39:49.516582057 +0100 +++ /work/SRC/openSUSE:Factory/.drpm.new.2988/drpm.changes 2021-05-18 18:26:47.262872622 +0200 @@ -1,0 +2,7 @@ +Fri May 14 11:43:41 UTC 2021 - Andreas Stieger <andreas.stie...@gmx.de> + +- update to 0.5.0: + * fix a memory leak on invalid input + * Hide the internal library symbols + +------------------------------------------------------------------- Old: ---- drpm-0.4.1.tar.bz2 New: ---- drpm-0.5.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ drpm.spec ++++++ --- /var/tmp/diff_new_pack.oPXn9U/_old 2021-05-18 18:26:48.698866399 +0200 +++ /var/tmp/diff_new_pack.oPXn9U/_new 2021-05-18 18:26:48.702866382 +0200 @@ -36,7 +36,7 @@ %endif Name: drpm -Version: 0.4.1 +Version: 0.5.0 Release: 0 Summary: A small library for fetching information from DeltaRPM packages License: LGPL-2.1-or-later ++++++ drpm-0.4.1.tar.bz2 -> drpm-0.5.0.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.4.1/CMakeLists.txt new/drpm-0.5.0/CMakeLists.txt --- old/drpm-0.4.1/CMakeLists.txt 2019-09-11 13:39:05.000000000 +0200 +++ new/drpm-0.5.0/CMakeLists.txt 2020-06-03 05:15:52.000000000 +0200 @@ -3,8 +3,8 @@ project(drpm C) set(DRPM_MAJOR_VERSION 0) -set(DRPM_MINOR_VERSION 4) -set(DRPM_PATCH_VERSION 1) +set(DRPM_MINOR_VERSION 5) +set(DRPM_PATCH_VERSION 0) set(DRPM_VERSION ${DRPM_MAJOR_VERSION}.${DRPM_MINOR_VERSION}.${DRPM_PATCH_VERSION}) include(GNUInstallDirs) @@ -24,6 +24,15 @@ pkg_check_modules(ZSTD REQUIRED libzstd) endif() +if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) + include (CheckCCompilerFlag) + CHECK_C_COMPILER_FLAG(-fvisibility=hidden DRPM_HAVE_VISIBILITY) + if (DRPM_HAVE_VISIBILITY) + set(VISIBILITY_FLAG -fvisibility=hidden) + endif() + set(CMAKE_C_FLAGS "${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" ) +endif () + add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.4.1/src/drpm.h new/drpm-0.5.0/src/drpm.h --- old/drpm-0.4.1/src/drpm.h 2019-09-11 13:29:31.000000000 +0200 +++ new/drpm-0.5.0/src/drpm.h 2020-06-03 05:15:31.000000000 +0200 @@ -35,6 +35,12 @@ #include <config.h> #endif +#if __GNUC__ >= 4 +#define DRPM_VISIBLE __attribute__((visibility("default"))) +#else +#define DRPM_VISIBLE +#endif + /** * @defgroup drpmMake DRPM Make * Tools for creating a DeltaRPM file from two RPM files, @@ -171,6 +177,7 @@ * @param [in] newrpm Name of new RPM file to be (re-)created. * @return Error code. */ +DRPM_VISIBLE int drpm_apply(const char *oldrpm, const char *deltarpm, const char *newrpm); /** @@ -181,6 +188,7 @@ * @return Error code. * @see DRPM_CHECK_FULL, DRPM_CHECK_FILESIZES */ +DRPM_VISIBLE int drpm_check(const char *deltarpm, int checkmode); /** @@ -192,6 +200,7 @@ * @return Error code. * @see DRPM_CHECK_FULL, DRPM_CHECK_FILESIZES */ +DRPM_VISIBLE int drpm_check_sequence(const char *oldrpm, const char *sequence, int checkmode); /** @@ -266,6 +275,7 @@ * @warning If not @c NULL, @p opts should have been initialized with * drpm_make_options_init(), otherwise behaviour is undefined. */ +DRPM_VISIBLE int drpm_make(const char *oldrpm, const char *newrpm, const char *deltarpm, const drpm_make_options *opts); /** @@ -281,6 +291,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_init(drpm_make_options **opts); /** @@ -289,6 +300,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_destroy(drpm_make_options **opts); /** @@ -299,6 +311,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_defaults(drpm_make_options *opts); /** @@ -311,6 +324,7 @@ * drpm_make_options_init() previously, otherwise behaviour is undefined. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_copy(drpm_make_options *dst, const drpm_make_options *src); /** @@ -325,6 +339,7 @@ * @see drpm_make() * @see DRPM_TYPE_STANDARD, DRPM_TYPE_RPMONLY */ +DRPM_VISIBLE int drpm_make_options_set_type(drpm_make_options *opts, unsigned short type); /** @@ -336,6 +351,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_set_version(drpm_make_options *opts, unsigned short version); /** @@ -350,6 +366,7 @@ * DRPM_COMP_LZMA, DRPM_COMP_XZ * @see DRPM_COMP_LEVEL_DEFAULT */ +DRPM_VISIBLE int drpm_make_options_set_delta_comp(drpm_make_options *opts, unsigned short comp, unsigned short level); /** @@ -360,6 +377,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_get_delta_comp_from_rpm(drpm_make_options *opts); /** @@ -373,6 +391,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_forbid_addblk(drpm_make_options *opts); /** @@ -388,6 +407,7 @@ * DRPM_COMP_LZMA, DRPM_COMP_XZ * @see DRPM_COMP_LEVEL_DEFAULT */ +DRPM_VISIBLE int drpm_make_options_set_addblk_comp(drpm_make_options *opts, unsigned short comp, unsigned short level); /** @@ -400,6 +420,7 @@ * @note If @p seqfile is @c NULL, sequence ID shall not be written. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_set_seqfile(drpm_make_options *opts, const char *seqfile); /** @@ -413,6 +434,7 @@ * @return Error code. * @see drpm_make() */ +DRPM_VISIBLE int drpm_make_options_add_patches(drpm_make_options *opts, const char *oldrpmprint, const char *oldpatchrpm); /** @@ -455,6 +477,7 @@ * @note Memory allocated by calling drpm_read() should later be freed * by calling drpm_destroy(). */ +DRPM_VISIBLE int drpm_read(drpm **delta, const char *filename); /** @@ -486,6 +509,7 @@ * @see DRPM_TAG_COMP * @see DRPM_TAG_TGTCOMP */ +DRPM_VISIBLE int drpm_get_uint(drpm *delta, int tag, unsigned *target); /** @@ -516,6 +540,7 @@ * @see DRPM_TAG_TGTHEADERLEN * @see DRPM_TAG_PAYLOADFMTOFF */ +DRPM_VISIBLE int drpm_get_ulong(drpm *delta, int tag, unsigned long *target); /** @@ -545,6 +570,7 @@ * @see DRPM_TAG_EXTDATALEN * @see DRPM_TAG_INTDATALEN */ +DRPM_VISIBLE int drpm_get_ullong(drpm *delta, int tag, unsigned long long *target); /** @@ -583,6 +609,7 @@ * @see DRPM_TAG_TGTCOMPPARAM * @see DRPM_TAG_TGTLEAD */ +DRPM_VISIBLE int drpm_get_string(drpm *delta, int tag, char **target); /** @@ -620,6 +647,7 @@ * @see DRPM_TAG_INTCOPIES * @see DRPM_TAG_EXTCOPIES */ +DRPM_VISIBLE int drpm_get_ulong_array(drpm *delta, int tag, unsigned long **target, unsigned long *size); /** @@ -640,6 +668,7 @@ * @warning @p delta should have been previously initialized with * drpm_read(), otherwise behaviour is undefined. */ +DRPM_VISIBLE int drpm_destroy(drpm **delta); /** @} */ @@ -651,6 +680,7 @@ * @param [in] error error code * @return error description */ +DRPM_VISIBLE const char *drpm_strerror(int error); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.4.1/src/drpm_decompstrm.c new/drpm-0.5.0/src/drpm_decompstrm.c --- old/drpm-0.4.1/src/drpm_decompstrm.c 2019-09-11 13:28:23.000000000 +0200 +++ new/drpm-0.5.0/src/drpm_decompstrm.c 2020-06-03 05:15:31.000000000 +0200 @@ -746,14 +746,14 @@ return DRPM_ERR_IO; } + if (in_len == 0) + return DRPM_ERR_FORMAT; + size_t const buffOutSize = ZSTD_DStreamOutSize(); void* const buffOut = malloc(buffOutSize); if (buffOut == NULL) return DRPM_ERR_MEMORY; - if (in_len == 0) - return DRPM_ERR_FORMAT; - ZSTD_inBuffer input = { in_buffer, in_len, 0 }; while (input.pos < input.size) {