mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Do not skip text-based images on NULL, if they're smaller than
512 the test buffer gets NULL-filled.
This commit is contained in:
@@ -250,7 +250,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
// Check for unexpected control characters that shouldn't be present in a text file and can crash this plugin
|
||||
foreach(byte b in testArray)
|
||||
{
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D)
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D && b != 0x00)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
// Check for unexpected control characters that shouldn't be present in a text file and can crash this plugin
|
||||
foreach(byte b in testArray)
|
||||
{
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D)
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D && b != 0x00)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace DiscImageChef.DiscImages
|
||||
// Check for unexpected control characters that shouldn't be present in a text file and can crash this plugin
|
||||
foreach(byte b in testArray)
|
||||
{
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D)
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D && b != 0x00)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
// Check for unexpected control characters that shouldn't be present in a text file and can crash this plugin
|
||||
foreach(byte b in testArray)
|
||||
{
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D)
|
||||
if(b < 0x20 && b != 0x0A && b != 0x0D && b != 0x00)
|
||||
return false;
|
||||
}
|
||||
gdiStream = new StreamReader(imageFilter.GetDataForkStream());
|
||||
|
||||
Reference in New Issue
Block a user