bug found in psos queue
PATCH 1/1 bug found in psos queue
Hello all,
I found a bug in xenomai-2.4/src/skins/psos+/queue.c, in function q_vreceive, struct modifier is not corectly fill with argument data.
Here the patch to fix this bug
regards,
Alexandre
CREDITS +4 -0
@@ -142,3 +142,7 @@ D: Autoconf-related fixes. N: Frederic Villeneuve E: [email protected] D: udev support for message pipes. + +N: Alexandre Coffignal +E: [email protected] +D: psos skin q_vreceive bug fix
src/skins/psos+/queue.c +0 -0
@@ -82,6 +82,10 @@ u_long q_vreceive(u_long qid, u_long flags, u_long
timeout,
u_long flags;
u_long timeout;
} modifiers; /* Combine to fit into available arg space (i.e.5) */
+
+ modifiers.flags=flags;
+ modifiers.timeout=timeout;
+
return XENOMAI_SKINCALL5(__psos_muxid, __psos_q_vreceive,
qid, &modifiers, msgbuf_r, buflen,msglen_r);
}
Signature · 9 lines
Alexandre COFFIGNAL, Chef de Projet Email: alexandre.coffignal[@]cenosys.com <mailto:[email protected]> ------------------------------------ 10, Rue Xavier Bichat F-72000 Le MANS web : http://www.cenosys.com ------------------------------------
Quoted 7 lines · Alexandre Coffignal
Hello all,
I found a bug in
xenomai-2.4/src/skins/psos+/queue.c, in functionq_vreceive, struct modifier is not corectly fill with argument data.Here the patch to fix this bug
Thanks for the patch. But we can not accept a patch of the CREDITS file:
appear in this file people which do contribute regularly. However, if you send a patch in the usual git format (as produced by git-format-patch), the patch will be credited to you in the git logs.
So, please resend.
Regard.
Signature · 1 line
Gilles
Quoted 11 lines · Gilles Chanteperdrix
Quoted 8 lines · Alexandre Coffignal
Hello all,
I found a bug in
xenomai-2.4/src/skins/psos+/queue.c, in functionq_vreceive, struct modifier is not corectly fill with argument data.Here the patch to fix this bug
Quoted 9 lines
Thanks for the patch. But we can not accept a patch of the CREDITS file:
appear in this file people which do contribute regularly. However, if you send a patch in the usual git format (as produced by git-format-patch), the patch will be credited to you in the git logs.So, please resend.
Regard.
No problem,
Here patch as produced by git-format-patch.
Thank you for your interest,
Regard.
Alexandre
Signature · 21 lines
Alexandre COFFIGNAL, Chef de Projet Email: [email protected] <mailto:[email protected]> ------------------------------------ CénoSYS <http://www.cenosys.com> 10, Rue Xavier Bichat F-72000 Le MANS Tel: +33(0) 243 511 797 web : http://www.cenosys.com ------------------------------------ CONFIDENTIALITE : Ce message électronique et tous les fichiers attachés qu'il contient sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le retourner immédiatement a son émetteur sans en conserver de copie. CONFIDENTIALITY : This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to an other person, use it for any purpose, or store or copy the information in any medium.
From fed6cef9000904312f886db8b8986f87c444275f Mon Sep 17 00:00:00 2001
From: Alexandre Coffignal <[email protected]>
Date: Wed, 4 Nov 2009 13:47:44 +0100
Subject: [PATCH] psos: in function q_vreceive, struct modifier is not corectly fill with
argument data.
--- src/skins/psos+/queue.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
src/skins/psos+/queue.c +4 -0
@@ -82,6 +82,10 @@ u_long q_vreceive(u_long qid, u_long flags, u_long timeout,u_long flags;u_long timeout; } modifiers;/* Combine to fit into available arg space (i.e. 5) */ + + modifiers.flags=flags; + modifiers.timeout=timeout; +return XENOMAI_SKINCALL5 (__psos_muxid, __psos_q_vreceive, qid, &modifiers, msgbuf_r, buflen, msglen_r); }
Signature · 1 line
1.6.0.4