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
8bd99c36
Commit
8bd99c36
authored
May 01, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Ensure that OP_pop_except is called with proper stack depth.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
622eb728
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
compile.c
dlls/jscript/compile.c
+10
-3
No files found.
dlls/jscript/compile.c
View file @
8bd99c36
...
@@ -1387,18 +1387,25 @@ static HRESULT pop_to_stat(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx)
...
@@ -1387,18 +1387,25 @@ static HRESULT pop_to_stat(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx)
{
{
unsigned
stack_pop
=
0
;
unsigned
stack_pop
=
0
;
statement_ctx_t
*
iter
;
statement_ctx_t
*
iter
;
HRESULT
hres
;
for
(
iter
=
ctx
->
stat_ctx
;
iter
!=
stat_ctx
;
iter
=
iter
->
next
)
{
for
(
iter
=
ctx
->
stat_ctx
;
iter
!=
stat_ctx
;
iter
=
iter
->
next
)
{
if
(
iter
->
using_scope
&&
!
push_instr
(
ctx
,
OP_pop_scope
))
if
(
iter
->
using_scope
&&
!
push_instr
(
ctx
,
OP_pop_scope
))
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
iter
->
using_except
&&
!
push_instr
(
ctx
,
OP_pop_except
))
if
(
iter
->
using_except
)
{
if
(
stack_pop
)
{
hres
=
push_instr_uint
(
ctx
,
OP_pop
,
stack_pop
);
if
(
FAILED
(
hres
))
return
hres
;
stack_pop
=
0
;
}
if
(
!
push_instr
(
ctx
,
OP_pop_except
))
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
stack_pop
+=
iter
->
stack_use
;
stack_pop
+=
iter
->
stack_use
;
}
}
if
(
stack_pop
)
{
if
(
stack_pop
)
{
HRESULT
hres
;
hres
=
push_instr_uint
(
ctx
,
OP_pop
,
stack_pop
);
hres
=
push_instr_uint
(
ctx
,
OP_pop
,
stack_pop
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
...
...
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