Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
813ae10f
Commit
813ae10f
authored
Dec 04, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Check for illegal characters in entry point names.
parent
ed954e54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
parser.c
tools/winebuild/parser.c
+11
-0
No files found.
tools/winebuild/parser.c
View file @
813ae10f
...
...
@@ -46,6 +46,9 @@ static FILE *input_file;
static
const
char
*
separator_chars
;
static
const
char
*
comment_chars
;
/* valid characters in ordinal names */
static
const
char
valid_ordname_chars
[]
=
"/$:-_@?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
;
static
const
char
*
const
TypeNames
[
TYPE_NBTYPES
]
=
{
"variable"
,
/* TYPE_VARIABLE */
...
...
@@ -447,6 +450,7 @@ static const char *parse_spec_flags( ORDDEF *odp )
static
int
parse_spec_ordinal
(
int
ordinal
,
DLLSPEC
*
spec
)
{
const
char
*
token
;
size_t
len
;
ORDDEF
*
odp
=
add_entry_point
(
spec
);
memset
(
odp
,
0
,
sizeof
(
*
odp
)
);
...
...
@@ -470,6 +474,13 @@ static int parse_spec_ordinal( int ordinal, DLLSPEC *spec )
odp
->
lineno
=
current_line
;
odp
->
ordinal
=
ordinal
;
len
=
strspn
(
odp
->
name
,
valid_ordname_chars
);
if
(
len
<
strlen
(
odp
->
name
))
{
error
(
"Character '%c' is not allowed in exported name '%s'
\n
"
,
odp
->
name
[
len
],
odp
->
name
);
goto
error
;
}
switch
(
odp
->
type
)
{
case
TYPE_VARIABLE
:
...
...
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