Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brendan McGrath
wine
Commits
73b9ebb6
Commit
73b9ebb6
authored
1 week ago
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
1 week ago
Browse files
Options
Downloads
Patches
Plain Diff
jscript: Don't leak when popping (u)int values off the stack.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
96837afc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/jscript/engine.c
+14
-2
14 additions, 2 deletions
dlls/jscript/engine.c
with
14 additions
and
2 deletions
dlls/jscript/engine.c
+
14
−
2
View file @
73b9ebb6
...
...
@@ -142,12 +142,24 @@ static HRESULT stack_pop_object(script_ctx_t *ctx, IDispatch **r)
static
inline
HRESULT
stack_pop_int
(
script_ctx_t
*
ctx
,
INT
*
r
)
{
return
to_int32
(
ctx
,
stack_pop
(
ctx
),
r
);
jsval_t
v
;
HRESULT
hres
;
v
=
stack_pop
(
ctx
);
hres
=
to_int32
(
ctx
,
v
,
r
);
jsval_release
(
v
);
return
hres
;
}
static
inline
HRESULT
stack_pop_uint
(
script_ctx_t
*
ctx
,
UINT32
*
r
)
{
return
to_uint32
(
ctx
,
stack_pop
(
ctx
),
r
);
jsval_t
v
;
HRESULT
hres
;
v
=
stack_pop
(
ctx
);
hres
=
to_uint32
(
ctx
,
v
,
r
);
jsval_release
(
v
);
return
hres
;
}
static
inline
unsigned
local_off
(
call_frame_t
*
frame
,
int
ref
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment