Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Иван Мажукин
mpd
Commits
b0703b92
Commit
b0703b92
authored
Aug 03, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/FormatString: pass the allocated buffer to AllocatedString::Donate()
.. and not the stack buffer. This made the AllocatedString destructor crash. Closes #52
parent
dd9fd3d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
NEWS
NEWS
+1
-0
FormatString.cxx
src/util/FormatString.cxx
+1
-1
No files found.
NEWS
View file @
b0703b92
...
@@ -3,6 +3,7 @@ ver 0.20.10 (not yet released)
...
@@ -3,6 +3,7 @@ ver 0.20.10 (not yet released)
- ffmpeg: support MusicBrainz ID3v2 tags
- ffmpeg: support MusicBrainz ID3v2 tags
* tags
* tags
- aiff: fix FORM chunk size endianess (is big-endian)
- aiff: fix FORM chunk size endianess (is big-endian)
* fix crash on Windows
ver 0.20.9 (2017/06/04)
ver 0.20.9 (2017/06/04)
* decoder
* decoder
...
...
src/util/FormatString.cxx
View file @
b0703b92
...
@@ -57,7 +57,7 @@ FormatStringV(const char *fmt, va_list args)
...
@@ -57,7 +57,7 @@ FormatStringV(const char *fmt, va_list args)
const
size_t
length
=
strlen
(
buffer
);
const
size_t
length
=
strlen
(
buffer
);
char
*
p
=
new
char
[
length
+
1
];
char
*
p
=
new
char
[
length
+
1
];
memcpy
(
p
,
buffer
,
length
+
1
);
memcpy
(
p
,
buffer
,
length
+
1
);
return
AllocatedString
<>::
Donate
(
buffer
);
return
AllocatedString
<>::
Donate
(
p
);
#endif
#endif
}
}
...
...
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