[bug #68192] [long-term] check all dynamic ("heap") memory allocations for success

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
Follow-up Comment #8, bug #68192 (group groff):


commit 3dafa5960edfbe39bf2fc5456225f31d3e9d77c1                          
Author: G. Branden Robinson <[email protected]>               
Date:   Thu Jun 4 13:51:24 2026 -0500                                    
                                                                         
    [libgroff]: Be more fastidious with heap memory.                     
                                                                         
    * src/libs/libgroff/string.cpp: Use ISO C++98 exceptions to handle heap
      storage allocation failures.  Preprocessor-include C++ "<new>" header
      file.  Preprocessor-include "error.h" and its prerequisite "errarg.h"
      to make visible the `fatal()` symbol.                              
                                                                         
      (salloc, sfree_alloc, srealloc, string::remove_spaces): Catch      
      `std:bad_alloc` exception and `fatal()` out with an attempt to     
      describe what we were doing.                                       
                                                                         
    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/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaiRVBAAKCRCqLAuaBUf3
TkLEAP0S7eHsuv9X+CF8u7KhNcse/zQzr6JvFMm/csMgKDBF8QD+Ibed5iHQvajS
91UGn4MG+i5soMgsCYtyHrY549VCNgA=
=V2F9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.