You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to understand what's going on. As it seems the calculated aSed (MsDoc.php:1137) is not correct. The length of the given data string is only 1818112, why reading at index 2228225 causes this error.
Unfortunatelly my document includes sensible data why I cannot share it. If you need any further information please let me know.
When trying to parse a larger doc file I get the following stacktrace:
Uninitialized string offset: 2228225
C:\workspace\PhpOfficeUtils\vendor\phpoffice\phpword\src\PhpWord\Reader\MsDoc.php:2305
C:\workspace\PhpOfficeUtils\vendor\phpoffice\phpword\src\PhpWord\Reader\MsDoc.php:1147
C:\workspace\PhpOfficeUtils\vendor\phpoffice\phpword\src\PhpWord\Reader\MsDoc.php:1099
C:\workspace\PhpOfficeUtils\vendor\phpoffice\phpword\src\PhpWord\Reader\MsDoc.php:118
C:\workspace\PhpOfficeUtils\vendor\phpoffice\phpword\src\PhpWord\IOFactory.php:78
I tried to understand what's going on. As it seems the calculated aSed (MsDoc.php:1137) is not correct. The length of the given data string is only 1818112, why reading at index 2228225 causes this error.
Unfortunatelly my document includes sensible data why I cannot share it. If you need any further information please let me know.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: