widl: Consolidate top-level parameter conformance/variance expression writing into a separate function.

Rob Shearman robertshearman at gmail.com
Thu Jul 3 03:11:00 CDT 2008


Descend through as many pointer types as necessary to find the
fundamental type and determine whether it needs a top-level parameter
conformance/variance expression to be written.

Add support for writing top-level parameter conformance/variance
expressions for non-encapsulated unions.
---
 tools/widl/typegen.c |  115 +++++++++++++++++++++++++++----------------------
 1 files changed, 63 insertions(+), 52 deletions(-)

Fixes this Valgrind warning:
+ Syscall param socketcall.send(msg) points to uninitialised byte(s)
+    at  (within /lib/ld-2.7.so)
+    by  rpcrt4_conn_write (rpc_binding.h:168)
+    by  RPCRT4_SendWithAuth (rpc_message.c:533)
+    by  RPCRT4_Send (rpc_message.c:675)
+    by  I_RpcSend (rpc_message.c:1225)
+    by  I_RpcSendReceive (rpc_message.c:1328)
+    by  NdrSendReceive (ndr_clientserver.c:214)
+    by  square_unencu (server_c.c:2467)
+    by  union_tests (server.c:889)
+    by  run_tests (server.c:1241)
+    by  client (server.c:1260)
+    by  func_server (server.c:1357)
+    by  run_test (test.h:449)
+    by  main (test.h:498)
+  Address 0x7f01350c is 28 bytes inside a block of size 36 alloc'd
+    at  notify_alloc (heap.c:191)
+    by  RtlAllocateHeap (heap.c:1231)
+    by  RPCRT4_SendWithAuth (rpc_message.c:492)
+    by  RPCRT4_Send (rpc_message.c:675)
+    by  I_RpcSend (rpc_message.c:1225)
+    by  I_RpcSendReceive (rpc_message.c:1328)
+    by  NdrSendReceive (ndr_clientserver.c:214)
+    by  square_unencu (server_c.c:2467)
+    by  union_tests (server.c:889)
+    by  run_tests (server.c:1241)
+    by  client (server.c:1260)
+    by  func_server (server.c:1357)
+    by  run_test (test.h:449)
+    by  main (test.h:498)
+  Uninitialised value was created by a stack allocation
+    at  square_unencu (server_c.c:2424)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7c4dc72a379ad6194158a4a673a53fbcde5dc7df.diff
Type: text/x-patch
Size: 7203 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080703/da778509/attachment.bin 


More information about the wine-patches mailing list