Skip to content

Loop in ODS Reader#832

Closed
Krakozaber wants to merge 1 commit intoPHPOffice:developfrom
Krakozaber:patch-1
Closed

Loop in ODS Reader#832
Krakozaber wants to merge 1 commit intoPHPOffice:developfrom
Krakozaber:patch-1

Conversation

@Krakozaber
Copy link
Contributor

Fix loop in listWorksheetInfo()

This is:

- [ +] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

Loop in listWorksheetInfo()

Fix loop in listWorksheetInfo()
@PowerKiKi PowerKiKi closed this in 39b573b Jan 2, 2019
@PowerKiKi
Copy link
Member

Could you please let us know what $xml->name was for the element that caused an infinite loop ?

@Krakozaber
Copy link
Contributor Author

Krakozaber commented Jan 2, 2019

<text></text>

@PowerKiKi
Copy link
Member

That seems to be an invalid file. While your PR was merged, I'd recommend re-considering the tool you used to create the files in the first place.

@Krakozaber
Copy link
Contributor Author

Krakozaber commented Jan 9, 2019

It's libre office 6

guillaume-ro-fr pushed a commit to guillaume-ro-fr/PhpSpreadsheet that referenced this pull request Jun 12, 2019
According to the spec, http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415588_253892949,
a `<table:table-row>` can only ever contains a `<table:table-cell>` or
a `<table:covered-table-cell>`, but it seems that some invalid files in the wild
may contains something else. That would trigger an infinite loop. So instead we
totally ignore the invalid content.

Closes PHPOffice#832
BlackyTay pushed a commit to BlackyTay/PhpSpreadsheet that referenced this pull request Aug 8, 2025
According to the spec, http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415588_253892949,
a `<table:table-row>` can only ever contains a `<table:table-cell>` or
a `<table:covered-table-cell>`, but it seems that some invalid files in the wild
may contains something else. That would trigger an infinite loop. So instead we
totally ignore the invalid content.

Closes PHPOffice#832
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants