Bug 579032 - IllegalArgumentException in ReliableFile.getInputStream()
This change adds a check for positive file size, before passing the file
size to BufferedInputStream. This prevents an IllegalArgumentException
from occurring, in case of inconsistent file states (e.g. due to disk
errors when the file is written).
Change-Id: Icbd89149e1439f5d19c8bf0e470f3768fda87247
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/191306
Tested-by: Equinox Bot <equinox-bot@eclipse.org>
Reviewed-by: Thomas Watson <tjwatson@us.ibm.com>
2 files changed