[haiku-bugs] [Haiku] #8831: input_server shouldn't use pointers as a cookie

  • From: "xyzzy" <trac@xxxxxxxxxxxx>
  • Date: Sat, 04 Aug 2012 15:05:24 -0000

#8831: input_server shouldn't use pointers as a cookie
----------------------------------+------------------------------
 Reporter:  xyzzy                 |        Owner:  korli
     Type:  bug                   |       Status:  new
 Priority:  normal                |    Milestone:  R1
Component:  Servers/input_server  |      Version:  R1/Development
 Keywords:                        |   Blocked By:
 Blocking:                        |  Has a Patch:  0
 Platform:  All                   |
----------------------------------+------------------------------
 The input_server currently uses pointers as a cookie in its communication
 with the input method replicant to identify an input method, and stores
 them in an int32 field in BMessage. This is problematic on x86_64 due to
 the increased pointer width. As a temporary workaround I have changed the
 cookie field in the messages to be a pointer rather than an int32 in my
 branch. However, pointers should not be used in cross-app communication,
 an integer ID should be used instead.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8831>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: