]> code.ossystems Code Review - openembedded-core.git/commit
rpm: Handle proper return value to avoid major issues
authorRanjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Wed, 8 Sep 2021 17:45:15 +0000 (23:15 +0530)
committerSteve Sakoman <steve@sakoman.com>
Fri, 24 Sep 2021 14:27:46 +0000 (04:27 -1000)
commitad080aadbc409c99511d602e0531952b96c06bbf
tree9cca362a4717a3df4f87a618d3b9fbf800a851cd
parentdc1209f35369ea57d507356e19e64654df197b94
rpm: Handle proper return value to avoid major issues

0001-rpm-rpmio.c-restrict-virtual-memory-usage-if-limit-s.patch changed
to avoid critical issues
Handled return values of getrlimit() and lzma_cputhreads() functions
to avoid unexpected behaviours like devide by zero and potential read
of uninitialized variable 'virtual_memory'
Upstream-Status: Pending [merge of multithreading patches to upstream]

Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5aae9c2cb464350bc443a0f60fd6602942e61f46)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/rpm/files/0001-rpm-rpmio.c-restrict-virtual-memory-usage-if-limit-s.patch