File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -319,8 +319,8 @@ namespace pdflib
319319 }
320320 else
321321 {
322- LOG_S (FATAL ) << " invoking 'Q' on empty stack!" ;
323- throw std::logic_error (__FILE__);
322+ LOG_S (ERROR ) << " invoking 'Q' on empty stack!" ;
323+ // throw std::logic_error(__FILE__);
324324 }
325325 }
326326
Original file line number Diff line number Diff line change @@ -365,13 +365,18 @@ namespace pdflib
365365 auto itr = src.begin ();
366366 c = utf8::next (itr, src.end ());
367367
368- assert (itr==src.end ());
368+ // assert(itr==src.end());
369369 }
370- assert (csr_range.first <=c and c<=csr_range.second );
370+ // assert(csr_range.first<=c and c<=csr_range.second);
371371
372+ if (not (csr_range.first <=c and c<=csr_range.second ))
373+ {
374+ LOG_S (ERROR) << c << " is going out of bounds: " << csr_range.first << " ," << csr_range.second ;
375+ }
376+
372377 if (_map.count (c)==1 )
373378 {
374- LOG_S (FATAL ) << " overwriting number c= " << c ;
379+ LOG_S (ERROR ) << " overwriting number cmap[ " << c << " ]: " << _map. at (c) << " with " << tgt ;
375380 }
376381
377382 _map[c] = tgt;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ namespace pdflib
5252
5353 void qpdf_stream_decoder::decode (QPDFObjectHandle& content)
5454 {
55- LOG_S (WARNING ) << " start decoding content-stream: " << content.getTypeName () << " -> " << content.unparse ();
55+ LOG_S (INFO ) << " start decoding content-stream: " << content.getTypeName () << " -> " << content.unparse ();
5656
5757 stream.clear ();
5858
@@ -62,7 +62,7 @@ namespace pdflib
6262 }
6363 catch (std::exception& e)
6464 {
65- LOG_S (FATAL ) << e.what ();
65+ LOG_S (ERROR ) << " QPDF encountered error ( " << e.what () << " ) during decoding " ;
6666 }
6767
6868 LOG_S (WARNING) << " finished decoding content-stream!" ;
You can’t perform that action at this time.
0 commit comments