1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Pass non-null msghdr to recvmsg()
The Hurd implementation of recvmsg() in glibc does not handle a NULL value
for the msghdr parameter, crashing (and thus failing the test).
.
Since this is a simple existance test, and the actual mdocml code uses properly
filled msghdr's, then pass it a valid one also in the existance test.
.
This is a workaround for what glibc ought to handle better (i.e. not crash and
return EINVAL); use it to keep building mdocml while a proper fix is done in
glibc.
Author: Pino Toscano <pino@debian.org>
Origin: other, https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1086138;filename=recvmsg-hurd.diff;msg=5
Bug-Debian: https://bugs.debian.org/1086138
Forwarded: no
Reviewed-By: Andrea Pappacoda <tachi@debian.org>
Last-Update: 2024-12-04
--- mdocml-1.14.6.orig/test-recvmsg.c
+++ mdocml-1.14.6/test-recvmsg.c
@@ -4,5 +4,5 @@
int
main(void)
{
- return recvmsg(-1, NULL, 0) != -1;
+ return recvmsg(-1, &(struct msghdr){0}, 0) != -1;
}
|