This code in crm_expr_syscall.c looks wrong:
 status = CreatePipe(&to_minion[0], &to_minion[1], &pipeSecAttr, 2^10 * 32);
status = CreatePipe(&from_minion[0], &from_minion[1], &pipeSecAttr, 2^10 * 32);
2^10 uses the XOR operator, but it looks like the code should be using 1024*32 instead.
Whoa!!! I never noticed that!
Is that live code or something that never actually happens?
On Friday, June 14, 2019, 10:15:47 AM UTC, Jonathan Wakely redi@users.sourceforge.net wrote:
[bugs:#3] Incorrect use of XOR operator
Status: open
Group: v1.0 (example)
Created: Fri Jun 14, 2019 10:15 AM UTC by Jonathan Wakely
Last Updated: Fri Jun 14, 2019 10:15 AM UTC
Owner: nobody
This code in crm_expr_syscall.c looks wrong:
 status = CreatePipe(&to_minion[0], &to_minion[1], &pipeSecAttr, 2^10 * 32);
status = CreatePipe(&from_minion[0], &from_minion[1], &pipeSecAttr, 2^10 * 32);
2^10 uses the XOR operator, but it looks like the code should be using 1024*32 instead.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/crm114/bugs/3/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #3