Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized string offset on line 828 #19

Open
phplaw opened this issue Jun 8, 2017 · 1 comment
Open

Uninitialized string offset on line 828 #19

phplaw opened this issue Jun 8, 2017 · 1 comment

Comments

@phplaw
Copy link

phplaw commented Jun 8, 2017

Uninitialized string offset: 59 application/third_party/tcpdf/tcpdi_parser.php 828
The line on 828

$frag = $data{$offset} . @$data{$offset+1} . @$data{$offset+2} . @$data{$offset+3};

Should change to

$frag = isset($data{$offset}) ? $data{$offset} : '';
                $frag .= isset($data{$offset+1}) ? $data{$offset+1} : '';
                $frag .= isset($data{$offset+2}) ? $data{$offset+2} : '';
                $frag .= isset($data{$offset+3}) ? $data{$offset+3} : '';
@gohelkiran30
Copy link

Same issue still after 6 years
Uninitialized string offset: 52 application/third_party/tcpdf/tcpdi_parser.php 818

The line on 818
$frag = $data[$offset] . @$data[$offset+1] . @$data[$offset+2] . @$data[$offset+3];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants