Laurent Vivier
3e24bb3f12
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>
2016-01-08 11:36:13 +02:00
..
2014-12-11 12:07:52 +00:00
2015-01-27 22:33:56 +02:00
2015-05-18 17:45:10 +01:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2015-01-27 22:33:57 +02:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2015-10-07 20:03:15 +11:00
2014-08-22 15:06:35 +03:00
2014-08-22 15:06:35 +03:00
2015-12-17 17:33:48 +01:00
2015-09-28 16:29:11 +03:00
2014-10-06 21:52:45 +03:00
2015-09-28 16:29:11 +03:00
2014-03-13 19:52:28 +01:00
2015-12-17 17:33:48 +01:00
2014-05-02 21:59:36 +03:00
2015-12-02 13:12:30 +01:00
2015-09-28 16:29:11 +03:00
2015-12-17 17:33:48 +01:00
2014-06-29 14:19:59 +03:00
2013-04-05 14:40:54 +02:00
2014-08-22 15:06:34 +03:00
2016-01-08 11:36:12 +02:00
2014-10-06 21:52:45 +03:00
2016-01-08 11:36:13 +02:00
2014-06-17 09:21:40 +03:00
2014-05-02 21:59:36 +03:00
2015-01-20 15:19:33 +00:00