Follow-up Comment #11, bug #68192 (group groff):

commit e72d0504286aadb33ed641816c6cc4b7c63f5604
Author: G. Branden Robinson <[email protected]>
Date:   Sun May 31 22:50:39 2026 -0500

    [grohtml]: Wrap heap allocations with try/catch.

    Be more fastidious with heap-allocated memory.

    * src/devices/grohtml/post-html.cpp: Use ISO C++98 exceptions to handle
      heap storage allocation failures.  Preprocessor-include C++ "<new>"
      header file.

      (files::add_new_file)
      (text_glob::text_glob_html)
      (text_glob::text_glob_special)
      (text_glob::text_glob_line)
      (text_glob::text_glob_auto_image)
      (text_glob::text_glob_tag)
      (list:add)                                                         
      (list:insert)                                                      
      (page::page)                                                       
      (page::add)                                                        
      (page::add_tag)                                                    
      (page::add_line)                                                   
      (html_font::load_html_font)                                          
      (assert_state::add)                                                  
      (generate_img_src)                                                 
      (html_printer::write_header)                                       
      (html_printer::lookahead_for_tables)                                
      (html_printer::flush_page)                                          
      (html_printer::draw)                                               
      (html_printer::html_printer)                                          
      (html_printer::begin_page)                                         
      (get_str)                                                          
      (main): Declare and initialize variables outside of `try`/`catch`  
      blocks.  Initialize such variables with null pointers where
      appropriate.

    Continues the long process of fixing Savannah #68192.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68192>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to