Huw Davies : iphlpapi/tests: Increase buffer size to prevent overflow.

Alexandre Julliard julliard at winehq.org
Fri Sep 13 10:15:51 CDT 2013


Module: wine
Branch: master
Commit: 01d5632e5e9c730167f751bf74c72b9818799312
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=01d5632e5e9c730167f751bf74c72b9818799312

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Sep 13 12:52:52 2013 +0100

iphlpapi/tests: Increase buffer size to prevent overflow.

---

 dlls/iphlpapi/tests/iphlpapi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c
index dcbd3ab..032ac06 100644
--- a/dlls/iphlpapi/tests/iphlpapi.c
+++ b/dlls/iphlpapi/tests/iphlpapi.c
@@ -303,7 +303,7 @@ static void testGetIpForwardTable(void)
           trace( "IP forward table: %u entries\n", buf->dwNumEntries );
           for (i = 0; i < buf->dwNumEntries; i++)
           {
-              char buffer[40];
+              char buffer[100];
               sprintf( buffer, "dest %s", ntoa( buf->table[i].dwForwardDest ));
               sprintf( buffer + strlen(buffer), " mask %s", ntoa( buf->table[i].dwForwardMask ));
               trace( "%u: %s gw %s if %u type %u\n", i, buffer,




More information about the wine-cvs mailing list