[Bug 49656] New: SAP GUI - Ws2_32.getaddrinfo crashes with non-standard service (/etc/services)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Aug 4 23:46:40 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49656

            Bug ID: 49656
           Summary: SAP GUI - Ws2_32.getaddrinfo crashes with non-standard
                    service (/etc/services)
           Product: Wine
           Version: 5.14
          Hardware: x86
                OS: Mac OS X
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: winsock
          Assignee: wine-bugs at winehq.org
          Reporter: guimaeda at gmail.com

Created attachment 67890
  --> https://bugs.winehq.org/attachment.cgi?id=67890
Terminal output (both success and crash)

Calling getaddrinfo with pNodeName = NULL and a non-standard pServiceName that
is not present in /etc/services causes an Unhandled page fault.

I noticed this issue using SAP GUI, a Windows client for a corporate ERP system
that uses unusual TCP ports for some of its connections to servers.
These port numbers are registered in %WINDIR%\system32\drivers\etc\services
during installation, and after going through some traces I noticed the error
stopped after adding the same entries to the host's (macOS) /etc/services file.

Since SAP GUI is licensed software, I created a little C program that simulates
the same problem.
It simply calls getaddrinfo with a service name "I_dont_exist".
If this entry is not present in /etc/services, the program crashes.

Tested on Wine 5.14 upstream binaries downloaded from PlayOnLinux/Phoenicis
Wine building service.
I also tested in other Wine version I use, namely 5.14-staging, 5.0 (WineHQ
Homebrew), 5.7-staging (WineHQ Homebrew) and CrossOver 19.0.1. All had the same
result.

Sample C program with .exe and source code:
https://abap.ninja/bugreport/wine_getaddrinfo_crash.zip

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list