Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hidapi for openSUSE:Factory checked in at 2023-01-23 18:30:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hidapi (Old) and /work/SRC/openSUSE:Factory/.hidapi.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hidapi" Mon Jan 23 18:30:45 2023 rev:10 rq:1060119 version:0.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/hidapi/hidapi.changes 2023-01-09 17:23:25.659031153 +0100 +++ /work/SRC/openSUSE:Factory/.hidapi.new.32243/hidapi.changes 2023-01-23 18:30:48.439633833 +0100 @@ -1,0 +2,6 @@ +Sat Jan 21 10:04:03 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.13.1: + * hidraw: fix invalid read past the UDEV buffer + +------------------------------------------------------------------- Old: ---- hidapi-0.13.0.tar.gz New: ---- hidapi-0.13.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hidapi.spec ++++++ --- /var/tmp/diff_new_pack.T1vtNk/_old 2023-01-23 18:30:48.959637043 +0100 +++ /var/tmp/diff_new_pack.T1vtNk/_new 2023-01-23 18:30:48.963637068 +0100 @@ -18,7 +18,7 @@ %define sover 0 Name: hidapi -Version: 0.13.0 +Version: 0.13.1 Release: 0 Summary: Simple library for communicating with USB and Bluetooth HID devices License: BSD-3-Clause OR GPL-3.0-or-later ++++++ hidapi-0.13.0.tar.gz -> hidapi-0.13.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hidapi-hidapi-0.13.0/.github/workflows/builds.yml new/hidapi-hidapi-0.13.1/.github/workflows/builds.yml --- old/hidapi-hidapi-0.13.0/.github/workflows/builds.yml 2023-01-02 14:22:01.000000000 +0100 +++ new/hidapi-hidapi-0.13.1/.github/workflows/builds.yml 2023-01-09 12:31:33.000000000 +0100 @@ -12,7 +12,7 @@ runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install build tools run: brew install autoconf automake libtool - name: Configure Automake @@ -34,7 +34,7 @@ runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: hidapisrc - name: Install dependencies @@ -55,7 +55,7 @@ working-directory: build/framework run: make install - name: Check artifacts - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "install/shared/lib/libhidapi.dylib, \ install/shared/include/hidapi/hidapi.h, \ @@ -66,7 +66,7 @@ install/framework/lib/hidapi.framework/hidapi, \ install/framework/lib/hidapi.framework/Headers/hidapi.h, \ install/framework/lib/hidapi.framework/Headers/hidapi_darwin.h" - allow_failure: true + fail: true - name: Check CMake Export Package Shared run: | cmake \ @@ -99,7 +99,7 @@ runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: hidapisrc - name: Install dependencies @@ -119,7 +119,7 @@ working-directory: build/static run: make install - name: Check artifacts - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "install/shared/lib/libhidapi-libusb.so, \ install/shared/lib/libhidapi-hidraw.so, \ @@ -129,7 +129,7 @@ install/static/lib/libhidapi-hidraw.a, \ install/static/include/hidapi/hidapi.h, \ install/static/include/hidapi/hidapi_libusb.h" - allow_failure: true + fail: true - name: Check CMake Export Package Shared run: | cmake \ @@ -162,7 +162,7 @@ runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: hidapisrc - name: Install dependencies @@ -178,13 +178,13 @@ working-directory: build/msvc run: cmake --build . --target install - name: Check artifacts MSVC - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "install/msvc/lib/hidapi.lib, \ install/msvc/bin/hidapi.dll, \ install/msvc/include/hidapi/hidapi.h, \ install/msvc/include/hidapi/hidapi_winapi.h" - allow_failure: true + fail: true - name: Check CMake Export Package shell: cmd run: | @@ -209,13 +209,13 @@ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" nmake install - name: Check artifacts NMake - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "install/nmake/lib/hidapi.lib, \ install/nmake/bin/hidapi.dll, \ install/nmake/include/hidapi/hidapi.h, \ install/nmake/include/hidapi/hidapi_winapi.h" - allow_failure: true + fail: true - name: Check CMake Export Package NMake shell: cmd run: | @@ -238,24 +238,24 @@ working-directory: build\mingw run: cmake --build . --target install - name: Check artifacts MinGW - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "install/mingw/lib/libhidapi.dll.a, \ install/mingw/bin/libhidapi.dll, \ install/mingw/include/hidapi/hidapi.h, \ install/mingw/include/hidapi/hidapi_winapi.h" - allow_failure: true + fail: true - name: Check CMake Export Package MinGW shell: cmd run: | cmake ^ -G"MinGW Makefiles" ^ - -B build\ming_test ^ + -B build\mingw_test ^ -S hidapisrc\hidtest ^ -Dhidapi_ROOT=install\mingw ^ -DCMAKE_INSTALL_PREFIX=install\mingw_test ^ "-DCMAKE_C_FLAGS=%NIX_COMPILE_FLAGS%" - cd build\ming_test + cd build\mingw_test cmake --build . --target install - name: Check Meson build @@ -271,22 +271,22 @@ runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: microsoft/setup-msbuild@v1.1 - name: MSBuild x86 run: msbuild windows\hidapi.sln /p:Configuration=Release /p:Platform=Win32 - name: Check artifacts x86 - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "windows/Release/hidapi.dll, windows/Release/hidapi.lib, windows/Release/hidapi.pdb" - allow_failure: true + fail: true - name: MSBuild x64 run: msbuild windows\hidapi.sln /p:Configuration=Release /p:Platform=x64 - name: Check artifacts x64 - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: "windows/x64/Release/hidapi.dll, windows/x64/Release/hidapi.lib, windows/x64/Release/hidapi.pdb" - allow_failure: true + fail: true - name: Gather artifacts run: | md artifacts diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hidapi-hidapi-0.13.0/HACKING.txt new/hidapi-hidapi-0.13.1/HACKING.txt --- old/hidapi-hidapi-0.13.0/HACKING.txt 2023-01-02 14:22:01.000000000 +0100 +++ new/hidapi-hidapi-0.13.1/HACKING.txt 2023-01-09 12:31:33.000000000 +0100 @@ -6,6 +6,9 @@ Firing a new release: 1. Update the Version (if not yet updated). -2. Build hidapi.dll/.lib for x86/x64. -3. Upload Windows binaries to Github release page. -4. Make sure to tag the release as: `hidapi-<VERSION>`, where <VERSION> as in VERSION file. +2. Prepare the Release Notes. +3. Store the Release Notes into a file. +4. Create locally an annotated git tag with release notes attached, e.g.: `git tag -aF ../hidapi_release_notes hidapi-<VERSION>` +5. Push newly created tag: `git push origin hidapi-<VERSION>` +6. Grab the hidapi-win.zip from Summary page of "GitHub Builds" Action for latest master build. +7. Create a Github Release with hidapi-win.zip attached, for newly created tag. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hidapi-hidapi-0.13.0/VERSION new/hidapi-hidapi-0.13.1/VERSION --- old/hidapi-hidapi-0.13.0/VERSION 2023-01-02 14:22:01.000000000 +0100 +++ new/hidapi-hidapi-0.13.1/VERSION 2023-01-09 12:31:33.000000000 +0100 @@ -1 +1 @@ -0.13.0 \ No newline at end of file +0.13.1 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hidapi-hidapi-0.13.0/hidapi/hidapi.h new/hidapi-hidapi-0.13.1/hidapi/hidapi.h --- old/hidapi-hidapi-0.13.0/hidapi/hidapi.h 2023-01-02 14:22:01.000000000 +0100 +++ new/hidapi-hidapi-0.13.1/hidapi/hidapi.h 2023-01-09 12:31:33.000000000 +0100 @@ -53,7 +53,7 @@ @ingroup API */ -#define HID_API_VERSION_PATCH 0 +#define HID_API_VERSION_PATCH 1 /* Helper macros */ #define HID_API_AS_STR_IMPL(x) #x diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hidapi-hidapi-0.13.0/linux/hid.c new/hidapi-hidapi-0.13.1/linux/hid.c --- old/hidapi-hidapi-0.13.0/linux/hid.c 2023-01-02 14:22:01.000000000 +0100 +++ new/hidapi-hidapi-0.13.1/linux/hid.c 2023-01-09 12:31:33.000000000 +0100 @@ -403,7 +403,7 @@ size_t uevent_len = strlen(uevent); if (uevent_len > sizeof(tmp) - 1) uevent_len = sizeof(tmp) - 1; - memcpy(tmp, uevent, sizeof(tmp)); + memcpy(tmp, uevent, uevent_len); tmp[uevent_len] = '\0'; char *saveptr = NULL; @@ -493,7 +493,7 @@ size_t uevent_len = strlen(uevent); if (uevent_len > sizeof(tmp) - 1) uevent_len = sizeof(tmp) - 1; - memcpy(tmp, uevent, sizeof(tmp)); + memcpy(tmp, uevent, uevent_len); tmp[uevent_len] = '\0'; char *saveptr = NULL;