Accepting request 964325 from home:gregfreemyer:Tools-for-forensic-boot-cd
- Add libfdata-20211023-1TB-fix.patch * Fixes bug associated with image offsets beyond 1TB * see https://github.com/libyal/libbde/issues/47 OBS-URL: https://build.opensuse.org/request/show/964325 OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfdata?expand=0&rev=18
This commit is contained in:
parent
938341d721
commit
abfee071e3
39
libfdata-20211023-1TB-fix.patch
Normal file
39
libfdata-20211023-1TB-fix.patch
Normal file
@ -0,0 +1,39 @@
|
||||
Index: libfdata-20211023/include/libfdata.h
|
||||
===================================================================
|
||||
--- libfdata-20211023.orig/include/libfdata.h
|
||||
+++ libfdata-20211023/include/libfdata.h
|
||||
@@ -1411,7 +1411,7 @@ int libfdata_vector_get_number_of_elemen
|
||||
* Returns 1 if successful or -1 on error
|
||||
*/
|
||||
LIBFDATA_EXTERN \
|
||||
-int libfdata_vector_get_element_index_at_offset(
|
||||
+int64_t libfdata_vector_get_element_index_at_offset(
|
||||
libfdata_vector_t *vector,
|
||||
off64_t element_value_offset,
|
||||
int *element_index,
|
||||
Index: libfdata-20211023/libfdata/libfdata_vector.c
|
||||
===================================================================
|
||||
--- libfdata-20211023.orig/libfdata/libfdata_vector.c
|
||||
+++ libfdata-20211023/libfdata/libfdata_vector.c
|
||||
@@ -979,7 +979,7 @@ int libfdata_vector_get_number_of_elemen
|
||||
/* Retrieves the element index for a specific offset
|
||||
* Returns 1 if successful or -1 on error
|
||||
*/
|
||||
-int libfdata_vector_get_element_index_at_offset(
|
||||
+int64_t libfdata_vector_get_element_index_at_offset(
|
||||
libfdata_vector_t *vector,
|
||||
off64_t element_value_offset,
|
||||
int *element_index,
|
||||
Index: libfdata-20211023/libfdata/libfdata_vector.h
|
||||
===================================================================
|
||||
--- libfdata-20211023.orig/libfdata/libfdata_vector.h
|
||||
+++ libfdata-20211023/libfdata/libfdata_vector.h
|
||||
@@ -236,7 +236,7 @@ int libfdata_vector_get_number_of_elemen
|
||||
/* Mapped range functions
|
||||
*/
|
||||
LIBFDATA_EXTERN \
|
||||
-int libfdata_vector_get_element_index_at_offset(
|
||||
+int64_t libfdata_vector_get_element_index_at_offset(
|
||||
libfdata_vector_t *vector,
|
||||
off64_t element_value_offset,
|
||||
int *element_index,
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 22 18:19:06 UTC 2022 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- Add libfdata-20211023-1TB-fix.patch
|
||||
* Fixes bug associated with image offsets beyond 1TB
|
||||
* see https://github.com/libyal/libbde/issues/47
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 14 13:10:12 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libfdata
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,6 +28,8 @@ Source: https://github.com/libyal/libfdata/releases/download/%version/li
|
||||
Source2: https://github.com/libyal/libfdata/releases/download/%version/libfdata-alpha-%version.tar.gz.asc
|
||||
Source3: %name.keyring
|
||||
Patch1: system-libs.patch
|
||||
# The source code assumes 64bit integers for one of the function returns. Fix that.
|
||||
Patch2: libfdata-20211023-1TB-fix.patch
|
||||
BuildRequires: c_compiler
|
||||
BuildRequires: gettext-tools >= 0.18.1
|
||||
BuildRequires: libtool
|
||||
|
Loading…
Reference in New Issue
Block a user