diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-08-28 19:04:57 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-30 17:10:28 +0100 |
commit | 19985178e7bd01234d93b6b97071f193ed29b2b3 (patch) | |
tree | bdbb5dbaa0b2765fd90aaf07d70a8dca6c949b7d /meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch | |
parent | d6094e1e4e49be02932a757373e8b01e97ff3709 (diff) | |
download | poky-19985178e7bd01234d93b6b97071f193ed29b2b3.tar.gz |
nfs-utils: 2.3.3 -> 2.4.1
- Remove 0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch, the new api
can check the pointer before free it.
- Rmove 0001-makefile.am-update-the-path-of-libnfs.a.patch, it is already in
the source.
- Rmove nfs-utils-musl-limits.patch, it is already fixed.
- Rebased the following patches:
0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch
0001-configure.ac-Do-not-fatalize-Wmissing-prototypes.patch
bugfix-adjust-statd-service-name.patch
nfs-utils-musl-res_querydomain.patch
(From OE-Core rev: 5601523e16ebd35d7de8d22ec5590618ea9f7ffb)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch deleted file mode 100644 index a44d1bf2fe..0000000000 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 4f115fc314646500f7b4178d7248a02654c7cd10 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 30 Nov 2018 16:47:57 -0800 | ||
4 | Subject: [PATCH] Do not pass null pointer to freeaddrinfo() | ||
5 | |||
6 | Passing null pointer as input parameter to freeaddrinfo() is undefined | ||
7 | behaviour, some libcs e.g. glibc might just call free() which does | ||
8 | accept null pointer but other libcs e.g. musl might not and instead | ||
9 | cause the program to segfault. Therefore do not rely on undefined | ||
10 | behaviour instead make it deterministic | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | support/export/client.c | 3 ++- | ||
17 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
18 | |||
19 | Index: nfs-utils-2.3.2/support/export/client.c | ||
20 | =================================================================== | ||
21 | --- nfs-utils-2.3.2.orig/support/export/client.c | ||
22 | +++ nfs-utils-2.3.2/support/export/client.c | ||
23 | @@ -309,7 +309,8 @@ client_lookup(char *hname, int canonical | ||
24 | init_addrlist(clp, ai); | ||
25 | |||
26 | out: | ||
27 | - freeaddrinfo(ai); | ||
28 | + if (ai) | ||
29 | + freeaddrinfo(ai); | ||
30 | return clp; | ||
31 | } | ||
32 | |||