Gerald Pfeifer : winedump: Increase buffer size and potential string length inoutput_spec_symbol.
Alexandre Julliard
julliard at winehq.org
Thu Apr 20 12:35:13 CDT 2017
Module: wine
Branch: stable
Commit: 2ad97820b77ff25cb4967a8ece93176865de5335
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2ad97820b77ff25cb4967a8ece93176865de5335
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>
(cherry picked from commit 3d258b0fd7df2744c35a9b7ee5d8653fb6653aa2)
Signed-off-by: Michael Stefaniuc <mstefani 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