Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Throw InvalidArgumentException in case getint4d fails #878

Open
wants to merge 2 commits into
base: 1.8
Choose a base branch
from

Conversation

kajal-techhighway
Copy link

I have noticed a case where function "private static function getInt4d($data, $pos)" in OLERead.php file fails to read 4 bytes of data from corrupted block. It is not feasible to make changes everywhere, hence we are throwing InvalidArgumentException which will make sure that we do not end up with infinite looping in any situation. Please parse sample files attached in the zip archive.

test.zip

…r .xlsx file ( when OLERead fails to detect size of cell blocks and goes in infinite loop) : changed code according to PSR2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants