jasonrogena / jasonrogena/php-excel-reader

Patch for truncated texts

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
PHP
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
Change
$newstr = $retstr[$j].chr(0);
into
$newstr .= $retstr[$j].chr(0);
around line 547 in reader.php.

When the excel's SST record exceeds the BIFF record size (which may happen if
you have more than 8kbyte of unique texts in cells), and a CONTINUE is inserted
in the middle of a string, then only the end of the string is returned for that
cell, the first portion is truncated.
```

Original issue reported on code.google.com by `gergely....@gmail.com` on 30 Nov 2010 at 2:54

Contributor guide

No contributing guide indexed for this repository

Research direction

Open reader.php around line 547 and inspect how the SST record handles strings split by a CONTINUE record. Reproduce with an Excel file containing more than 8 kB of unique cell text, then verify that the complete string is returned rather than only its final portion.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.