Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
77b90b5f
Commit
77b90b5f
authored
Mar 01, 2022
by
Rob Swindell
💬
Browse files
Zero-init write buffer in js_writebin()
CID 350276
parent
31864868
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/js_file.c
src/sbbs3/js_file.c
+1
-1
No files found.
src/sbbs3/js_file.c
View file @
77b90b5f
...
...
@@ -1882,7 +1882,7 @@ js_writebin(JSContext *cx, uintN argc, jsval *arglist)
JS_RESUMEREQUEST
(
cx
,
rc
);
return
(
JS_TRUE
);
}
buffer
=
m
alloc
(
size
*
count
);
buffer
=
c
alloc
(
size
,
count
);
if
(
buffer
==
NULL
)
{
rc
=
JS_SUSPENDREQUEST
(
cx
);
dbprintf
(
TRUE
,
p
,
"malloc failure of %u bytes"
,
size
*
count
);
...
...
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