ACK. I tested this and it fixes the problem. Thanks. On Tue, May 05, 2009 at 04:30:23AM -0700, Steven Dake wrote: > When doing pointer math in tracking api in dispatch in msg service, make > sure to cast req_lib_* to char * so sizeof addition operation doesn't > work like multiply of req_lib struct size. > > Regards > -steve >
> Index: lib/msg.c > =================================================================== > --- lib/msg.c (revision 1880) > +++ lib/msg.c (working copy) > @@ -273,7 +273,7 @@ > (struct res_lib_msg_queuegrouptrack_callback > *)dispatch_data; > > > res_lib_msg_queuegrouptrack_callback->buffer.notification = > - (SaMsgQueueGroupNotificationT > *)(res_lib_msg_queuegrouptrack_callback + > + (SaMsgQueueGroupNotificationT *)(((char > *)res_lib_msg_queuegrouptrack_callback) + > sizeof (struct > res_lib_msg_queuegrouptrack_callback)); > > callbacks.saMsgQueueGroupTrackCallback ( > _______________________________________________ > Openais mailing list > [email protected] > https://lists.linux-foundation.org/mailman/listinfo/openais _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
