Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
85051917
Commit
85051917
authored
Oct 14, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Oct 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Rewrite stabs parsing to not need PATH_MAX.
parent
4d29ba93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
stabs.c
dlls/dbghelp/stabs.c
+6
-6
No files found.
dlls/dbghelp/stabs.c
View file @
85051917
...
...
@@ -47,9 +47,6 @@
# include <unistd.h>
#endif
#include <stdio.h>
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
#include <assert.h>
#include <stdarg.h>
...
...
@@ -1272,7 +1269,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
struct
symt_function
*
curr_func
=
NULL
;
struct
symt_block
*
block
=
NULL
;
struct
symt_compiland
*
compiland
=
NULL
;
char
srcpath
[
PATH_MAX
];
/* path to directory source file is in */
char
*
srcpath
=
NULL
;
int
i
;
int
nstab
;
const
char
*
ptr
;
...
...
@@ -1294,7 +1291,6 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
nstab
=
stablen
/
sizeof
(
struct
stab_nlist
);
strs_end
=
strs
+
strtablen
;
memset
(
srcpath
,
0
,
sizeof
(
srcpath
));
memset
(
stabs_basic
,
0
,
sizeof
(
stabs_basic
));
memset
(
&
pending_block
,
0
,
sizeof
(
pending_block
));
memset
(
&
pending_func
,
0
,
sizeof
(
pending_func
));
...
...
@@ -1565,7 +1561,8 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
if
(
*
ptr
==
'\0'
)
/* end of N_SO file */
{
/* Nuke old path. */
srcpath
[
0
]
=
'\0'
;
HeapFree
(
GetProcessHeap
(),
0
,
srcpath
);
srcpath
=
NULL
;
stabs_finalize_function
(
module
,
curr_func
,
0
);
curr_func
=
NULL
;
source_idx
=
-
1
;
...
...
@@ -1583,7 +1580,10 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
compiland
=
symt_new_compiland
(
module
,
0
/* FIXME */
,
source_idx
);
}
else
{
srcpath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
1
);
strcpy
(
srcpath
,
ptr
);
}
}
break
;
case
N_SOL
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment