diff options
author | Laurent Vivier <laurent@vivier.eu> | 2015-10-06 01:20:48 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-01-08 11:36:13 +0200 |
commit | 3e24bb3f1277ee25743f0a3274306080df80da2c (patch) | |
tree | a94ab664d729ab6e30ca6ef68b7add653061a3d7 /qemu-doc.texi | |
parent | 928bed6a057cedd6110e634865e021a24029785a (diff) |
linux-user: in poll(), if nfds is 0, pfd can be NULL
This problem appears with yum in Fedora 20 / PPC64 container.
test case:
#include <stdio.h>
#include <poll.h>
int main(void)
{
int ret;
ret = poll(NULL, 0, 1000);
printf("%d\n", ret);
}
target test environment: Fedora 20 / PPC64
host test environment: Ubuntu 14.0.2 / x86_64
original test result: -1
13451 poll(0,0,1000,274886297496,268566664,268566648) = -1 errno=14 (Bad address)
patched test result: 0
13536 poll(0,0,1000,274886297496,268566664,268566648) = 0
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'qemu-doc.texi')
0 files changed, 0 insertions, 0 deletions