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
0920f8e7
Commit
0920f8e7
authored
Jan 21, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: symbol undecoration: Really check that we get a template string before making use of it.
parent
95cff6c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
cpp.c
dlls/msvcrt/tests/cpp.c
+1
-0
undname.c
dlls/msvcrt/undname.c
+8
-5
No files found.
dlls/msvcrt/tests/cpp.c
View file @
0920f8e7
...
...
@@ -984,6 +984,7 @@ static void test_demangle(void)
{
"?$AAA@$DBAB@"
,
"AAA<`template-parameter257'>"
},
{
"?$AAA@$D?4@"
,
"AAA<`template-parameter-5'>"
},
{
"?$AAA@PAUBBB@@"
,
"AAA<struct BBB *>"
},
{
"??$ccccc@PAVaaa@@@bar@bb@foo@@DGPAV0@PAV0@PAVee@@IPAPAVaaa@@1@Z"
,
"private: static class bar * __stdcall foo::bb::bar::ccccc<class aaa *>(class bar *,class ee *,unsigned int,class aaa **,class ee *)"
},
};
int
i
,
num_test
=
(
sizeof
(
test
)
/
sizeof
(
test
[
0
]));
char
*
name
;
...
...
dlls/msvcrt/undname.c
View file @
0920f8e7
...
...
@@ -538,8 +538,8 @@ static BOOL get_class(struct parsed_symbol* sym)
if
(
*++
sym
->
current
==
'$'
)
{
sym
->
current
++
;
name
=
get_template_name
(
sym
);
str_array_push
(
sym
,
name
,
-
1
,
&
sym
->
names
);
if
((
name
=
get_template_name
(
sym
)))
str_array_push
(
sym
,
name
,
-
1
,
&
sym
->
names
);
}
break
;
default:
...
...
@@ -1292,17 +1292,17 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
str_array_push
(
sym
,
function_name
,
-
1
,
&
sym
->
stack
);
break
;
}
sym
->
stack
.
start
=
1
;
}
else
if
(
*
sym
->
current
==
'$'
)
{
/* Strange construct, it's a name with a template argument list
and that's all. */
sym
->
current
++
;
sym
->
result
=
get_template_name
(
sym
);
ret
=
TRUE
;
ret
=
(
sym
->
result
=
get_template_name
(
sym
))
!=
NULL
;
goto
done
;
}
else
if
(
*
sym
->
current
==
'?'
&&
sym
->
current
[
1
]
==
'$'
)
do_after
=
5
;
/* Either a class name, or '@' if the symbol is not a class member */
switch
(
*
sym
->
current
)
...
...
@@ -1331,6 +1331,9 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
case
3
:
sym
->
flags
&=
~
UNDNAME_NO_FUNCTION_RETURNS
;
break
;
case
5
:
sym
->
names
.
start
=
1
;
break
;
}
/* Function/Data type and access level */
...
...
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