Gerald Pfeifer : winedump: Increase buffer size and potential string length inoutput_spec_symbol.

Alexandre Julliard julliard at winehq.org
Wed Jan 25 13:18:53 CST 2017


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sat Jan 21 17:26:42 2017 +0100

winedump: Increase buffer size and potential string length inoutput_spec_symbol.

Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winedump/output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winedump/output.c b/tools/winedump/output.c
index 6c2bfae..bbbb1ac 100644
--- a/tools/winedump/output.c
+++ b/tools/winedump/output.c
@@ -62,13 +62,13 @@ void  output_spec_preamble (void)
  */
 void  output_spec_symbol (const parsed_symbol *sym)
 {
-  char ord_spec[16];
+  char ord_spec[20];
 
   assert (specfile);
   assert (sym && sym->symbol);
 
   if (sym->ordinal >= 0)
-    snprintf(ord_spec, 8, "%d", sym->ordinal);
+    snprintf(ord_spec, 12, "%d", sym->ordinal);
   else
   {
     ord_spec[0] = '@';




More information about the wine-cvs mailing list