Skip to content

Commit 5a6440a

Browse files
committed
Make memory stream read only for byte loaded bundles
1 parent 03e1775 commit 5a6440a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EasySign/Bundle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public ZipArchive GetZipArchive(ZipArchiveMode mode = ZipArchiveMode.Read)
234234
{
235235
Logger.LogDebug("Loading bundle from memory with {Size} bytes", _rawZipContents.Length);
236236

237-
MemoryStream ms = new MemoryStream(_rawZipContents);
237+
MemoryStream ms = new MemoryStream(_rawZipContents, writable: false);
238238
return new ZipArchive(ms, mode);
239239
}
240240
else

0 commit comments

Comments
 (0)