timheuer / taglib-sharp-portable

.NET Portable Class Library implementation of TagLib# (forked from TagLib# main project)
Other
58 stars 33 forks source link

Recursion in File.cs AccessMode setter #9

Open dlorre opened 9 years ago

dlorre commented 9 years ago

In File.cs the setter ends with Mode = value at line 441. It creates a recursion. Setting Mode to value is useless since the getter checks the stream to return the mode. This problem leads to a stack overflow on some files, when there is a problem and the stream cannot be opened, so the access mode remains Closed and then a recursion occurs until the stack crashes.

MrCSharp22 commented 8 years ago

Hello, this was already fixed in Issue #5 which is closed now. Please update the assemblies you have to get the fix.