[Bug 38925] New: ipstats.c:1992 runtime error: index 32 out of bounds for type 'char [32]'

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jul 16 05:16:53 CDT 2015


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

            Bug ID: 38925
           Summary: ipstats.c:1992 runtime error: index 32 out of bounds
                    for type 'char [32]'
           Product: Wine
           Version: 1.7.47
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: iphlpapi
          Assignee: wine-bugs at winehq.org
          Reporter: vitti570 at gmail.com
      Distribution: ---

Running iphlpapi test case, in ipstats.c line 1992

if ((len = readlink( link, name, 32 )) > 0) name[len] = 0

len==32 thus exceeding the bounds of line[32].

I did double check with

if ((len = readlink( link, name, 32 )) > 0) assert(len<32),name[len] = 0

I found this one with a sanitized version of wine.
Best regards
Vittorio

-- 
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