Chromium Code Reviews
        
  DescriptionFix subtle memory issues detected by valgrind.
The size of dbus_bool_t and the size of bool are different.
The former is always 4, whereas the latter is usually 1.
The misuse of these types causes subtle memory issues
where some D-Bus functions read 4 bytes from a bool pointer,
or write 4 bytes to it. These functions take void* so
type checking didn't help.
TEST=tools/valgrind/valgrind.sh ninja/dbus_unittests
BUG=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95512
   
  Patch Set 1 #
      Total comments: 4
      
     
  
  
  
  Patch Set 2 : address comments #Messages
    Total messages: 5 (0 generated)
     
  
  
       |