pauln / tcpdi_parser

Parser for use with TCPDI, based on TCPDF_PARSER
GNU Lesser General Public License v3.0
27 stars 47 forks source link

Uninitialized string offset on line 828 #19

Open phplaw opened 7 years ago

phplaw commented 7 years ago

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 commented 1 year ago

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];