Update to version 1.4.1
Improve output from modulemd-validator Drop upstreamed patches Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
74f4cd0198
commit
5d8fffea47
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@
|
||||
/modulemd-1.2.0.tar.xz
|
||||
/modulemd-1.3.0.tar.xz
|
||||
/modulemd-1.4.0.tar.xz
|
||||
/modulemd-1.4.1.tar.xz
|
||||
|
@ -1,55 +0,0 @@
|
||||
From fe8f9d73a24b17a37519a0519dca2b20863cace0 Mon Sep 17 00:00:00 2001
|
||||
From: Stephen Gallagher <sgallagh@redhat.com>
|
||||
Date: Wed, 25 Apr 2018 14:01:58 -0400
|
||||
Subject: [PATCH 1/2] Fix incorrect pointer comparisons in nevra validation
|
||||
|
||||
Fixes: Coverity #276018
|
||||
|
||||
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
||||
---
|
||||
modulemd/modulemd-util.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/modulemd/modulemd-util.c b/modulemd/modulemd-util.c
|
||||
index 09eccb6ff08b065f5cc7730ab0411ffd2ca9a6a6..92adaffc2e22857dcc9d65a5ea5b9375835c48d1 100644
|
||||
--- a/modulemd/modulemd-util.c
|
||||
+++ b/modulemd/modulemd-util.c
|
||||
@@ -180,20 +180,20 @@ modulemd_validate_nevra (const gchar *nevra)
|
||||
* This needs to come from an external source that's kept up to date or
|
||||
* this will regularly break.
|
||||
*/
|
||||
|
||||
/* Process the "release" tag */
|
||||
- while (i > 0)
|
||||
+ while (i >= tmp)
|
||||
{
|
||||
if (*i == '-')
|
||||
{
|
||||
break;
|
||||
}
|
||||
i--;
|
||||
}
|
||||
|
||||
- if (i <= 0)
|
||||
+ if (i < tmp)
|
||||
{
|
||||
/* We hit the start of the string without hitting '-' */
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -206,11 +206,11 @@ modulemd_validate_nevra (const gchar *nevra)
|
||||
{
|
||||
break;
|
||||
}
|
||||
i--;
|
||||
}
|
||||
- if (i <= 0)
|
||||
+ if (i < tmp)
|
||||
{
|
||||
/* We hit the start of the string without hitting ':' */
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
--
|
||||
2.17.0
|
||||
|
@ -1,29 +0,0 @@
|
||||
From ed579bddb5fc359933c9c74167cf7fa9ee887e40 Mon Sep 17 00:00:00 2001
|
||||
From: Stephen Gallagher <sgallagh@redhat.com>
|
||||
Date: Wed, 25 Apr 2018 14:04:50 -0400
|
||||
Subject: [PATCH 2/2] Include string.h in modulemd-util.c
|
||||
|
||||
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
||||
---
|
||||
modulemd/modulemd-util.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/modulemd/modulemd-util.c b/modulemd/modulemd-util.c
|
||||
index 92adaffc2e22857dcc9d65a5ea5b9375835c48d1..66a410871945490f3d797a9de97848940b318710 100644
|
||||
--- a/modulemd/modulemd-util.c
|
||||
+++ b/modulemd/modulemd-util.c
|
||||
@@ -20,10 +20,11 @@
|
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
+#include <string.h>
|
||||
#include "modulemd-util.h"
|
||||
|
||||
GHashTable *
|
||||
_modulemd_hash_table_deep_str_copy (GHashTable *orig)
|
||||
{
|
||||
--
|
||||
2.17.0
|
||||
|
@ -1,12 +1,12 @@
|
||||
%global majorversion 1
|
||||
%global minorversion 4
|
||||
%global patchversion 0
|
||||
%global patchversion 1
|
||||
%global majorminorversion %{majorversion}.%{minorversion}
|
||||
%global nsversion %{majorversion}.0
|
||||
|
||||
Name: libmodulemd
|
||||
Version: %{majorminorversion}%{?patchversion:.%{patchversion}}
|
||||
Release: 2%{?dist}
|
||||
Release: 1%{?dist}
|
||||
Summary: Module metadata manipulation library
|
||||
|
||||
License: MIT
|
||||
@ -23,12 +23,6 @@ BuildRequires: python3-gobject-base
|
||||
|
||||
# Patches
|
||||
|
||||
# Upstream patch to fix pointer math error discovered by Coverity
|
||||
Patch0001: 0001-Fix-incorrect-pointer-comparisons-in-nevra-validatio.patch
|
||||
|
||||
# Upstream patch to fix -Werror=implicit-function-declaration error when
|
||||
# building in Koji
|
||||
Patch0002: 0002-Include-string.h-in-modulemd-util.c.patch
|
||||
|
||||
%description
|
||||
C Library for manipulating module metadata files.
|
||||
@ -77,6 +71,11 @@ export LC_CTYPE=C.utf8
|
||||
%{_datadir}/gtk-doc/html/modulemd/
|
||||
|
||||
%changelog
|
||||
* Tue May 08 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.4.1-1
|
||||
- Update to version 1.4.1
|
||||
- Improve output from modulemd-validator
|
||||
- Drop upstreamed patches
|
||||
|
||||
* Wed Apr 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.4.0-2
|
||||
- Fix pointer math error
|
||||
- Fix compilation failure in Fedora build system
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (modulemd-1.4.0.tar.xz) = 2fe8c9642a4f67c0b11929c8fbf81ade228de43ac8bbdeab4bd16c9e0faed2d64cb6d930b7ff064ea2d2eaffaba335f222c03c3d7d129557ac07ba78536aac4a
|
||||
SHA512 (modulemd-1.4.1.tar.xz) = 56e3f5923f527b59dc18f02b2deb7a08251adcee88aefac912dde8c9f47a56ee4d4bfc3e2a16e59c895e49c9c69117bc36d5bddd4845adc2ee6296c9b8505b8a
|
||||
|
Loading…
Reference in New Issue
Block a user