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
8ea1a12e
Commit
8ea1a12e
authored
Mar 02, 2009
by
Diaa Sami
Committed by
Alexandre Julliard
Mar 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fixed a number of buffer overflows.
parent
1ad19cc9
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
28 additions
and
10 deletions
+28
-10
Cs.rc
programs/cmd/Cs.rc
+1
-0
Da.rc
programs/cmd/Da.rc
+1
-0
De.rc
programs/cmd/De.rc
+1
-0
En.rc
programs/cmd/En.rc
+1
-0
Es.rc
programs/cmd/Es.rc
+1
-0
Fr.rc
programs/cmd/Fr.rc
+1
-0
Ja.rc
programs/cmd/Ja.rc
+1
-0
Ko.rc
programs/cmd/Ko.rc
+1
-0
Nl.rc
programs/cmd/Nl.rc
+1
-0
No.rc
programs/cmd/No.rc
+1
-0
Pl.rc
programs/cmd/Pl.rc
+1
-0
Pt.rc
programs/cmd/Pt.rc
+1
-0
Ru.rc
programs/cmd/Ru.rc
+1
-0
Si.rc
programs/cmd/Si.rc
+1
-0
Tr.rc
programs/cmd/Tr.rc
+1
-0
wcmd.h
programs/cmd/wcmd.h
+1
-0
wcmdmain.c
programs/cmd/wcmdmain.c
+12
-10
No files found.
programs/cmd/Cs.rc
View file @
8ea1a12e
...
...
@@ -276,4 +276,5 @@ Zadejte HELP <pkaz> pro podrobnj informace o nkterm z ve uvedench pk
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Da.rc
View file @
8ea1a12e
...
...
@@ -254,4 +254,5 @@ Skriv HELP <kommando> for mere information om kommandoerne ovenover\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "Mere? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/De.rc
View file @
8ea1a12e
...
...
@@ -292,4 +292,5 @@ obigen Befehle erhalten.\n"
WCMD_CONSTITLE,"Wine Befehlsprozessor"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "Mehr? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/En.rc
View file @
8ea1a12e
...
...
@@ -272,4 +272,5 @@ Enter HELP <command> for further information on any of the above commands\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Es.rc
View file @
8ea1a12e
...
...
@@ -289,4 +289,5 @@ Introduzca HELP <comando> para ms informacin sobre cualquiera de los comandos\
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Fr.rc
View file @
8ea1a12e
...
...
@@ -270,4 +270,5 @@ Entrez HELP <commande> pour plus d'informations sur les commandes ci-dessus\n"
WCMD_CONSTITLE,"Invite de commande Wine"
WCMD_VERSION,"CMD version %s\n\n"
WCMD_MOREPROMPT, "Plus ? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Ja.rc
View file @
8ea1a12e
...
...
@@ -277,6 +277,7 @@ EXIT\t\tCMDを終了\n\n\
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
#pragma code_page(default)
programs/cmd/Ko.rc
View file @
8ea1a12e
...
...
@@ -264,4 +264,5 @@ HELP <명령>을 치면 그 명령의 상세한 정보를 보여줌\n"
WCMD_CONSTITLE,"Wine 명령 입력대기"
WCMD_VERSION,"CMD 버젼 %s\n\n"
WCMD_MOREPROMPT, " 더? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Nl.rc
View file @
8ea1a12e
...
...
@@ -272,4 +272,5 @@ type HELP <opdracht> voor meer informatie over bovengenoemde opdrachten\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Versie %s\n\n"
WCMD_MOREPROMPT, "Meer? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/No.rc
View file @
8ea1a12e
...
...
@@ -270,4 +270,5 @@ Skriv HELP <kommando> for mer informasjon om kommandoene ovenfor\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Pl.rc
View file @
8ea1a12e
...
...
@@ -267,4 +267,5 @@ Wpisz HELP <komenda> dla dokadniejszych informacji o komendzie\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Pt.rc
View file @
8ea1a12e
...
...
@@ -499,4 +499,5 @@ Digite HELP <comando> para mais informaes sobre alguns dos comandos acima\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Ru.rc
View file @
8ea1a12e
...
...
@@ -278,4 +278,5 @@ EXIT\t\t CMD\n\n\
WCMD_CONSTITLE," Wine"
WCMD_VERSION," CMD %s\n\n"
WCMD_MOREPROMPT, "? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/Si.rc
View file @
8ea1a12e
...
...
@@ -270,6 +270,7 @@ Uporabite HELP <ukaz> za več informacijo o kateremkoli od zgoraj navedenih ukaz
WCMD_CONSTITLE,"Wine ukazni poziv"
WCMD_VERSION,"CMD različica %s\n\n"
WCMD_MOREPROMPT, "Več? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
#pragma code_page(default)
programs/cmd/Tr.rc
View file @
8ea1a12e
...
...
@@ -274,4 +274,5 @@ Yukardaki komutlar hakknda daha fazla bilgi iin HELP <komut> girin\n"
WCMD_CONSTITLE,"Wine Command Prompt"
WCMD_VERSION,"CMD Version %s\n\n"
WCMD_MOREPROMPT, "More? "
WCMD_LINETOOLONG, "The input line is too long.\n"
}
programs/cmd/wcmd.h
View file @
8ea1a12e
...
...
@@ -243,6 +243,7 @@ extern WCHAR version_string[];
#define WCMD_CONSTITLE 1032
#define WCMD_VERSION 1033
#define WCMD_MOREPROMPT 1034
#define WCMD_LINETOOLONG 1035
/* msdn specified max for Win XP */
#define MAXSTRING 8192
programs/cmd/wcmdmain.c
View file @
8ea1a12e
...
...
@@ -88,7 +88,7 @@ static const WCHAR equalsW[] = {'=','\0'};
static
const
WCHAR
closeBW
[]
=
{
')'
,
'\0'
};
WCHAR
anykey
[
100
];
WCHAR
version_string
[
100
];
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX
_PATH
],
param2
[
MAX_PATH
];
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX
STRING
],
param2
[
MAXSTRING
];
BATCH_CONTEXT
*
context
=
NULL
;
extern
struct
env_stack
*
pushd_directories
;
static
const
WCHAR
*
pagedMessage
=
NULL
;
...
...
@@ -972,7 +972,8 @@ void WCMD_run_program (WCHAR *command, int called) {
WCHAR
temp
[
MAX_PATH
];
WCHAR
pathtosearch
[
MAXSTRING
];
WCHAR
*
pathposn
;
WCHAR
stemofsearch
[
MAX_PATH
];
WCHAR
stemofsearch
[
MAX_PATH
];
/* maximum allowed executable name is
MAX_PATH, including null character */
WCHAR
*
lastSlash
;
WCHAR
pathext
[
MAXSTRING
];
BOOL
extensionsupplied
=
FALSE
;
...
...
@@ -998,6 +999,12 @@ void WCMD_run_program (WCHAR *command, int called) {
strcpyW
(
pathtosearch
,
curDir
);
}
if
(
strchrW
(
param1
,
'.'
)
!=
NULL
)
extensionsupplied
=
TRUE
;
if
(
strlenW
(
param1
)
>=
MAX_PATH
)
{
WCMD_output_asis
(
WCMD_LoadMessage
(
WCMD_LINETOOLONG
));
return
;
}
strcpyW
(
stemofsearch
,
param1
);
}
else
{
...
...
@@ -1584,22 +1591,17 @@ WCHAR *WCMD_LoadMessage(UINT id) {
* Dumps out the parsed command line to ensure syntax is correct
*/
static
void
WCMD_DumpCommands
(
CMD_LIST
*
commands
)
{
WCHAR
buffer
[
MAXSTRING
];
CMD_LIST
*
thisCmd
=
commands
;
const
WCHAR
fmt
[]
=
{
'%'
,
'p'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'2'
,
'.'
,
'2'
,
'd'
,
' '
,
'%'
,
'p'
,
' '
,
'%'
,
's'
,
' '
,
'R'
,
'e'
,
'd'
,
'i'
,
'r'
,
':'
,
'%'
,
's'
,
'\0'
};
WINE_TRACE
(
"Parsed line:
\n
"
);
while
(
thisCmd
!=
NULL
)
{
sprintfW
(
buffer
,
fmt
,
WINE_TRACE
(
"%p %d %2.2d %p %s Redir:%s
\n
"
,
thisCmd
,
thisCmd
->
prevDelim
,
thisCmd
->
bracketDepth
,
thisCmd
->
nextcommand
,
thisCmd
->
command
,
thisCmd
->
redirects
);
WINE_TRACE
(
"%s
\n
"
,
wine_dbgstr_w
(
buffer
));
wine_dbgstr_w
(
thisCmd
->
command
),
wine_dbgstr_w
(
thisCmd
->
redirects
));
thisCmd
=
thisCmd
->
nextcommand
;
}
}
...
...
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