]> code.ossystems Code Review - openembedded-core.git/commit
util-linux: remove erroneous patch (qsort_r)
authorAndré Draszik <andre.draszik@jci.com>
Wed, 16 Jan 2019 12:51:11 +0000 (12:51 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Jan 2019 23:11:01 +0000 (23:11 +0000)
commita85f93b4265a20b269085d12326e32915c561e62
tree13b0afa8699b9bd6139086a6d8a557f51f1ceb0b
parente07272491e9f4d81a4c3797c585958163657bf9c
util-linux: remove erroneous patch (qsort_r)

The patch in question is patching the code to use
qsort() instead of qsort_r(), without adopting the
compare function. This is a major issue, because
the compare function as written is evaluating /
accessing a third argument, which is not passed
with this OE patch, causing access to random
memory.

Given this patch was added so as to support (old)
linux (host) distros which might not provide
qsort_r(), according to the git history, and given
these days util-linux detects availability of
qsort_r() during configure phase, and given musl
builds (which doesn't provide qsort_r() either)
work without problem, the right solution is to
simply drop this invalid patch.

Do so.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/util-linux/util-linux/util-linux-native-qsort.patch [deleted file]
meta/recipes-core/util-linux/util-linux_2.32.1.bb