bugGNU roff - Bugs: bug #65975, pre-html.cpp: null destination...

 
 

bug #65975: pre-html.cpp: null destination pointer [-Wformat-truncation=]

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Wed 10 Jul 2024 10:46:40 PM UTC
   
 
Category:  Preprocessor html Severity:  3 - Normal
Item Group:  Build/Installation Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 08 Aug 2024 10:58:04 AM UTC, comment #1: 

Setting "Item Group" to "Build/Installation": "A groff component provokes diagnostics from build or other external tools, or outright fails to deploy."

The correct usage of "Warning/Suspicious behaviour" is: "A groff component issues a surprising diagnostic message, or fails to do so when it should."

C and C++ compilers are not components of groff.

G. Branden Robinson <gbranden>
Group administrator
Wed 10 Jul 2024 10:46:40 PM UTC, original submission:  

Subject: pre-html.cpp: null destination pointer [-Wformat-truncation=]

Directory: src/preproc/html

Source: git upstream

CC=/usr/bin/gcc-14 (gcc-14 (Debian 14-20240330-1) 14.0.1 20240330
(experimental) [master r14-9728-g6fc84f680d0]

[...]
  CXX      src/preproc/html/pre-html.o
../src/preproc/html/pre-html.cpp: In function 'char* make_string(const char*,
...)':
../src/preproc/html/pre-html.cpp:420:16: warning: null destination pointer
[-Wformat-truncation=]
  420 |   n = vsnprintf(p, size, fmt, ap);
      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~
[...]


  I don't get this warning.  I use the latest version of GNULIB and more
gnulib modules than upstream does.

Bjarni Ingi Gislason <bjarniig>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-08-08 gbranden Item GroupWarning/Suspicious behaviour Build/Installation

    Back to the top

    Powered by Savane 3.14-21bf.
    Corresponding source code