mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-26 16:45:09 +00:00
Backport pull request #18224 from jellyfin/release-12.z
Upgrade ATL to 7.18.0 to fix malformed FLAC hangs
Original-merge: ea99aee414
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
1 parent
3f087eb4a5
commit
8c7878afaa
2 files changed
+27
-1
No files matched your search
@@ -0,0 +1,26 @@
|
||||
using System.IO;
|
||||
using ATL;
|
||||
using Xunit;
|
||||
|
||||
namespace Jellyfin.Providers.Tests.MediaInfo;
|
||||
|
||||
public class AtlFlacRegressionTests
|
||||
{
|
||||
[Fact(Timeout = 5000)]
|
||||
public void AtlParser_MalformedFlac_DoesNotHang()
|
||||
{
|
||||
// The 456-byte Vorbis comment block claims a 1024-byte vendor string.
|
||||
byte[] fixture = [
|
||||
(byte)'f', (byte)'L', (byte)'a', (byte)'C',
|
||||
0, 0, 0, 34,
|
||||
.. new byte[34],
|
||||
0x84, 0, 1, 200,
|
||||
0, 4, 0, 0,
|
||||
.. new byte[452]
|
||||
];
|
||||
|
||||
// ATL 7.16 hangs on this stream.
|
||||
using var stream = new MemoryStream(fixture);
|
||||
_ = new Track(stream, ".flac");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user