[ovs-git] [openvswitch/ovs] c41292: Windows: Fix wmi.c to use count of wchar_t instead...

GitHub noreply at github.com
Fri Jan 27 20:36:51 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: c412927026f2a358938fc673a2358700d2372503
      https://github.com/openvswitch/ovs/commit/c412927026f2a358938fc673a2358700d2372503
  Author: Sairam Venugopal <vsairam at vmware.com>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
    M lib/wmi.c

  Log Message:
  -----------
  Windows: Fix wmi.c to use count of wchar_t instead of sizeof

wcscat_s and wcscpy_s requires number of elements as argument. wchar_t
uses 2 bytes for storage and using sizeof(internal_port_query) causes
access violation error on Windows 2012 R2 (64 bit). This patch introduces
a #define WMI_QUERY_COUNT set to 2048 and uses that instead.

Reported-by: Sairam Venugopal <vsairam at vmware.com>
Reported-at: openvswitch/ovs-issues#121
Signed-off-by: Sairam Venugopal <vsairam at vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru at ovn.org>




More information about the git mailing list