[Red5commits] [red5 commit] r3543 - java/server/trunk/src/org/red5/io/mp3/impl
codesite-noreply at google.com
codesite-noreply at google.com
Thu Feb 12 22:58:35 PST 2009
Author: mondain
Date: Thu Feb 12 22:54:29 2009
New Revision: 3543
Modified:
java/server/trunk/src/org/red5/io/mp3/impl/MP3Reader.java
Log:
Fixed a buffer overflow issues that happened when reading certain mp3 files.
Modified: java/server/trunk/src/org/red5/io/mp3/impl/MP3Reader.java
==============================================================================
--- java/server/trunk/src/org/red5/io/mp3/impl/MP3Reader.java (original)
+++ java/server/trunk/src/org/red5/io/mp3/impl/MP3Reader.java Thu Feb 12
22:54:29 2009
@@ -470,6 +470,7 @@
prevSize = frameSize + 1;
currentTime += header.frameDuration();
ByteBuffer body = ByteBuffer.allocate(tag.getBodySize());
+ body.setAutoExpand(true);
byte tagType = (IoConstants.FLAG_FORMAT_MP3 << 4)
| (IoConstants.FLAG_SIZE_16_BIT << 1);
switch (header.getSampleRate()) {
More information about the Red5commits
mailing list