modify fuzz test err

This commit is contained in:
xiaoweiwei 2020-02-25 11:50:22 +08:00
parent 25602fc3a8
commit 5143c1f589
2 changed files with 34 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: avahi
Version: 0.7
Release: 19
Release: 20
Summary: Avahi is a local network service discovery
License: LGPLv2+
URL: http://avahi.org
@ -8,6 +8,7 @@ Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
Patch1: avahi-0.6.30-mono-libdir.patch
Patch6000: CVE-2017-6519-Drop-legacy-unicast-queries-from-address-not-on-loca.patch
Patch9000: huawei-avahi-modify-fuzz-test-err.patch
BuildRequires: gcc automake libtool python2-dbus python2-libxml2 desktop-file-utils gtk2-devel glib2-devel
BuildRequires: libcap-devel expat-devel python2-devel python3-devel gdbm-devel pygobject3-devel pygtk2
@ -407,6 +408,12 @@ fi
%{_mandir}/man8/*
%changelog
* Tue Feb 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.7-20
- Type:NA
- ID:NA
- SUG:NA
- DESC:modify fuzz test err
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.7-19
- rename docs subpackage as help subpackage

View File

@ -0,0 +1,26 @@
From 6c909652e4b58d29448af695051efc377594e22f Mon Sep 17 00:00:00 2001
From: xiaoweiwei <xiaoweiwei5@huawei.com>
Date: Tue, 25 Feb 2020 11:37:10 +0800
Subject: [PATCH] avahi: modify fuzz test err
Signed-off-by: Buildteam <buildteam@openeuler.org>
---
avahi-core/dns.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/avahi-core/dns.c b/avahi-core/dns.c
index 7c38f42..d793b76 100644
--- a/avahi-core/dns.c
+++ b/avahi-core/dns.c
@@ -455,7 +455,7 @@ int avahi_dns_packet_consume_uint32(AvahiDnsPacket *p, uint32_t *ret_v) {
return -1;
d = (uint8_t*) (AVAHI_DNS_PACKET_DATA(p) + p->rindex);
- *ret_v = (d[0] << 24) | (d[1] << 16) | (d[2] << 8) | d[3];
+ *ret_v = ((uint32_t)d[0] << 24) | ((uint32_t)d[1] << 16) | ((uint32_t)d[2] << 8) | (uint32_t)d[3];
p->rindex += sizeof(uint32_t);
return 0;
--
1.8.3.1