Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a3140167
Commit
a3140167
authored
May 12, 2015
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/editfns.c (Fformat): Fix use-after-free bug (Bug#20548).
parent
8a9ba4d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/editfns.c
src/editfns.c
+3
-3
No files found.
src/editfns.c
View file @
a3140167
...
...
@@ -4390,9 +4390,6 @@ usage: (format STRING &rest OBJECTS) */)
nchars
=
multibyte_chars_in_text
((
unsigned
char
*
)
buf
,
p
-
buf
);
val
=
make_specified_string
(
buf
,
nchars
,
p
-
buf
,
multibyte
);
/* If we allocated BUF with malloc, free it too. */
SAFE_FREE
();
/* If the format string has text properties, or any of the string
arguments has text properties, set up text properties of the
result string. */
...
...
@@ -4498,6 +4495,9 @@ usage: (format STRING &rest OBJECTS) */)
UNGCPRO
;
}
/* If we allocated BUF or INFO with malloc, free it too. */
SAFE_FREE
();
return
val
;
}
...
...
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